I just can't figure it out why 'a' and 'b' are different. (Of course precesion problem with floating points but are they not equally off?)
a = 1 - 2 + 2e-13;
b = 1 + 2e-13 - 2;
isequal(a,b)
d = a-b
ans = 0
d = -1.110223024625157e-16
I just can't figure it out why 'a' and 'b' are different. (Of course precesion problem with floating points but are they not equally off?)
a = 1 - 2 + 2e-13;
b = 1 + 2e-13 - 2;
isequal(a,b)
d = a-b
ans = 0
d = -1.110223024625157e-16