Previous: Coordinate Transformations, Up: Arithmetic
Return a matrix or N-dimensional array whose elements are all equal to the pure imaginary unit, defined as
sqrt (-1)
. Since I (also i, J, and J) is a function, you can use the name(s) for other purposes.
Return a matrix or N-dimensional array whose elements are all Infinity. The arguments are handled the same as the arguments for
eye
. The optional argument class may be either `"single"' or `"double"'. The default is `"double"'.
Return a matrix or N-dimensional array whose elements are all NaN (Not a Number). The value NaN is the result of an operation like 0/0, or `Inf - Inf', or any operation with a NaN.
Note that NaN always compares not equal to NaN. This behavior is specified by the IEEE standard for floating point arithmetic. To find NaN values, you must use the
isnan
function.The arguments are handled the same as the arguments for
eye
. The optional argument class may be either `"single"' or `"double"'. The default is `"double"'.
Return a matrix or N-dimensional array whose elements are all equal to the ratio of the circumference of a circle to its diameter. Internally,
pi
is computed as `4.0 * atan (1.0)'.
Return a matrix or N-dimensional array whose elements are all equal to the base of natural logarithms. The constant e satisfies the equation
log
(e) = 1.
Return a matrix or N-dimensional array whose elements are all eps, the machine precision. More precisely,
eps
is the largest relative spacing between any two adjacent numbers in the machine's floating point system. This number is obviously system-dependent. On machines that support 64 bit IEEE floating point arithmetic,eps
is approximately 2.2204e-16.
Return a matrix or N-dimensional array whose elements are all equal to the largest floating point number that is representable. The actual value is system-dependent. On machines that support 64-bit IEEE floating point arithmetic,
realmax
is approximately 1.7977e+308See also: realmin.
Return a matrix or N-dimensional array whose elements are all equal to the smallest normalized floating point number that is representable. The actual value is system-dependent. On machines that support 64-bit IEEE floating point arithmetic,
realmin
is approximately 2.2251e-308See also: realmax.