Section: Base Constants
eps
for double precision arguments and
feps
for single precision arguments. The syntax for
teps
is
y = teps(x)
The teps
function is most useful if you need to
compute epsilon based on the type of the array.
teps
function,
and one of its numerical consequences.
--> teps(float(3.4)) ans = <float> - size: [1 1] 0.000000059604645 --> teps(complex(3.4+i*2)) ans = <float> - size: [1 1] 0.000000059604645 --> teps(double(3.4)) ans = <double> - size: [1 1] 1.1102230246251565e-16 --> teps(dcomplex(3.4+i*2)) ans = <double> - size: [1 1] 1.1102230246251565e-16