eps

Creates an epsilon (machine precision)

Syntax

  • eps

  • eps

  • eps(n)

  • eps(n, m)

  • eps('double')

  • eps('single')

Input argument

  • n - a variable: n-by-n matrix

  • m - a variable: n-by-m matrix

Description

eps returns the machine precision 2^(-52) for double and 2^(-23) for single.

eps(Inf), eps(-Inf) and eps(NaN) return NaN.

Examples

eps
eps('double')
eps('single')

See also

double, single.

History

Author

Allan CORNET

Last updated