WUT_Computer_Science/ENUME/references/szopinski-enume/projA/task1macheps.m
2021-11-10 13:12:25 +01:00

16 lines
349 B
Matlab

% ENUME MICHAŁ SZOPIŃSKI
% PROJECT A NUMBER 62
% TASK 1
% https://github.com/Lachcim/szopinski-enume
% first candidate is 2^0
foundEps = 1;
% decrement exponent until floating point underflow occurs
while foundEps / 2 + 1 > 1
foundEps = foundEps / 2;
end
disp(['Found epsilon is ', num2str(foundEps)]);
disp(['Epsilon is ', num2str(eps)]);