Analytically, the expression$$\exp(\ln(x))-x \enspace,$$should give 0.However, in Matlab, it does not.x = linspace(1, 10, 10);exp(log(x)) - x;for $x \in [1, 10]$, the answer is 0   0   -4.44089209850063e-16   0   0   0   0   -1.77635683940025e-15   1.77635683940025e-15    1.77635683940025e-15What is happening and how can I fix this?
Why is $\exp(\ln(x))-x\neq0$ in floating point arithmetic?
floating point;precision