WUT_Computer_Science/ENUME/references/PW-EiTI/MNUM/Project1/calculateEps.m
2021-11-10 13:12:25 +01:00

9 lines
142 B
Matlab

function [eps] = calculateEps()
%finding smallest eps where eps + 1 > 1
x = 1.0;
while (x + 1 > 1)
eps = x;
x = x/2;
end
end