mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 14:23:15 +02:00
9 lines
142 B
Matlab
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
|