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.00000011920929 --> teps(complex(3.4+i*2)) ans = <float> - size: [1 1] 0.00000011920929 --> teps(double(3.4)) ans = <double> - size: [1 1] 2.220446049250313e-16 --> teps(dcomplex(3.4+i*2)) ans = <double> - size: [1 1] 2.220446049250313e-16