The Conj function returns the complex conjugate of a number.
If its argument is an array, the Conj function will be applied to each
element and the result returned as an array.
The Imag function returns the imaginary part of a number.
If its argument is an array, the Imag function will be applied to each
element and the result returned as an array.
The Real function returns the real part of a number. If its
argument is an array, the Real function will be applied to
each element and the result returned as an array.
The abs function returns the absolute value of an arithmetic
type. If its argument is a complex number (Complex_Type),
then it returns the modulus. If the argument is an array, a new
array will be created whose elements are obtained from the original
array by using the abs function.
The acos function computes the arc-cosine of a number and
returns the result as an array. If its argument is an array, the
acos function will be applied to each element and the result returned
as an array.
The acosh function computes the inverse cosh of a number and
returns the result as an array. If its argument is an array, the
acosh function will be applied to each element and the result returned
as an array.
The asin function computes the arc-sine of a number and
returns the result as an array. If its argument is an array, the
asin function will be applied to each element and the result returned
as an array.
The asinh function computes the inverse-sinh of a number and
returns the result as an array. If its argument is an array, the
asinh function will be applied to each element and the result returned
as an array.
The atan function computes the arc-tangent of a number and
returns the result as an array. If its argument is an array, the
atan function will be applied to each element and the result returned
as an array.
The atanh function computes the inverse-tanh of a number and
returns the result as an array. If its argument is an array, the
atanh function will be applied to each element and the result returned
as an array.
The cos function computes the cosine of a number and
returns the result as an array. If its argument is an array, the
cos function will be applied to each element and the result returned
as an array.
The cosh function computes the hyperbolic cosine of a number and
returns the result as an array. If its argument is an array, the
cosh function will be applied to each element and the result returned
as an array.
The exp function computes the exponential of a number and
returns the result as an array. If its argument is an array, the
exp function will be applied to each element and the result returned
as an array.
The log function computes the logarithm of a number and
returns the result as an array. If its argument is an array, the
log function will be applied to each element and the result returned
as an array.
The log10 function computes the base-10 logarithm of a number and
returns the result as an array. If its argument is an array, the
log10 function will be applied to each element and the result returned
as an array.
The mul2 function multiplies an arithmetic type by two and
returns the result. If its argument is an array, a new array will
be created whose elements are obtained from the original array by
using the mul2 function.
Set the format for printing floating point values.
Usage
set_float_format (String_Type fmt)
Description
The set_float_format function is used to set the floating
point format to be used when floating point numbers are printed.
The routines that use this are the traceback routines and the
string function. The default value is "%f"
Example
s = string (PI); % --> s = "3.14159"
set_float_format ("%16.10f");
s = string (PI); % --> s = "3.1415926536"
set_float_format ("%10.6e");
s = string (PI); % --> s = "3.141593e+00"
The sign function returns the sign of an arithmetic type. If
its argument is a complex number (Complex_Type), it returns
the sign of the imaginary part of the number. If the argument is an
array, a new array will be created whose elements are obtained from
the original array by using the sign function.
When applied to a real number or an integer, the sign function
returns -1, 0, or +1 according to whether the number is
less than zero, equal to zero, or greater than zero, respectively.
The sin function computes the sine of a number and
returns the result as an array. If its argument is an array, the
sin function will be applied to each element and the result returned
as an array.
The sinh function computes the hyperbolic sine of a number and
returns the result as an array. If its argument is an array, the
sinh function will be applied to each element and the result returned
as an array.
The sqr function returns the square of an arithmetic type. If its
argument is a complex number (Complex_Type), then it returns
the square of the modulus. If the argument is an array, a new array
will be created whose elements are obtained from the original array
by using the sqr function.
The sqrt function computes the square root of a number and
returns the result as an array. If its argument is an array, the
sqrt function will be applied to each element and the result returned
as an array.
The tan function computes the tangent of a number and
returns the result as an array. If its argument is an array, the
tan function will be applied to each element and the result returned
as an array.
The tanh function computes the hyperbolic tangent of a number and
returns the result as an array. If its argument is an array, the
tanh function will be applied to each element and the result returned
as an array.