next up previous 229
Next: Additional functions.
Up: Built-in Functions
Previous: Built-in Functions

Standard functions.

A set of standard built-in functions is available and corresponds closely with the Fortran 77 set of intrinsic functions (Table [*]). Function invocations take the same form as in Fortran and may be nested arbitrarily deeply.

These built-in functions are all generic and will adapt to the type of arithmetic being used. Some, however, do not support integer arithmetic and a bad value will be returned if this is in use (see Table [*]). There are no data type conversion functions at present.


Table: The standard built-in functions. The angular arguments/results of all trigonometric functions are in radians.
Function
Number of
arguments
Description
SQRT 1 square root: $\sqrt{\mbox{arg}}$
LOG 1 natural logarithm: $\ln (\mbox{arg})$
LOG10 1 common logarithm: $\log _{10}(\mbox{arg})$
EXP 1 exponential: $\exp (\mbox{arg})$
ABS 1 absolute (positive) value: $\left\vert \mbox{arg} \right\vert$
NINT 1 nearest integer value to arg
MAX 2 or more maximum of arguments
MIN 2 or more minimum of arguments
DIM 2 Fortran DIM (positive difference) function
MOD 2 Fortran MOD (remainder) function
SIGN 2 Fortran SIGN (transfer of sign) function
SIN* 1 sine function: $\sin (\mbox{arg})$
COS* 1 cosine function: $\cos (\mbox{arg})$
TAN* 1 tangent function: $\tan (\mbox{arg})$
ASIN* 1 inverse sine function: $\sin ^{-1}(\mbox{arg})$
ACOS* 1 inverse cosine function: $\cos ^{-1}(\mbox{arg})$
ATAN* 1 inverse tangent function: $\tan ^{-1}(\mbox{arg})$
ATAN2* 2 Fortran ATAN2 (inverse tangent) function
SINH* 1 hyperbolic sine function: $\sinh (\mbox{arg})$
COSH* 1 hyperbolic cosine function: $\cosh (\mbox{arg})$
TANH* 1 hyperbolic tangent function: $\tanh (\mbox{arg})$
  *Function does not support integer arithmetic.




next up previous 229
Next: Additional functions.
Up: Built-in Functions
Previous: Built-in Functions

TRANSFORM Coordinate Transformation Facility
Starlink User Note 61
R.F. Warren-Smith
12th January 2006
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils