Next: Mathematical Intrinsic Functions
Up: Intrinsic Functions
Previous: Numerical Type Conversions
  Contents
We will give the generic names for the functions,
and mention the specific names if appropriate.
Only most important such functions are given here.
- ABS; absolute value. I,R,D,C argument, and
same type return value. For example,
Specific names are IABS, ABS, DABS, CABS.
- AINT(x): truncates to a whole R (D) number.
ANINT(x): nearest whole R (D) number.
They are similar to INT and NINT, except
that the returned result is R or D,
depending on the argument type.
Specific names for D: DINT, DNINT.
- MAX(x,y,z,...), MIN(x,y,z,...): maximum or minimum
from a list of arguments. Any number of arguments is allowed,
but all of them need to be of the same type (I, R or D).
Some specific names are
MAX0 (I arguments, I result),
AMAX1 (R arguments, R result),
DMAX1 (D arguments, D result).
- MOD(i,j) is the remainder of the division
i/j. MODULO(i,j) is
.
For example,
Specific names are AMOD, DMOD.
- SIGN(x,y) returns
(transfers the signum of second argument to the first).
Specific names: ISIGN, DSIGN.
- FRACTION(x), EXPONENT(x): the mantissa and the
exponent in the binary representation of a R or D
argument x. For example,
- CONJG(z), complex conjugate of a complex number.
Next: Mathematical Intrinsic Functions
Up: Intrinsic Functions
Previous: Numerical Type Conversions
  Contents
Adrian Sandu
2001-08-26