next up previous contents
Next: 2.18 help Up: 2. General commands Previous: 2.16 fput

2.17 functions

The following intrinsic functions exist:

asin(<arg>)                     !
acos(<arg>)                     !
atan(<arg>)                     !
asind(<arg>)                    ! Result in degrees
acosd(<arg>)                    ! Result in degrees
atand(<arg>)                    ! Result in degrees
 
sin(<arg>)                      !
cos(<arg>)                      !
tan(<arg>)                      !
sind(<arg>)                     ! Argument in degrees
cosd(<arg>)                     ! Argument in degrees
tand(<arg>)                     ! Argument in degrees
 
sinh(<arg>)                     ! Hyperbolic functions
cosh(<arg>)                     !
tanh(<arg>)                     !
 
sqrt(<arg>)                     ! Square root of <arg>
exp(<arg>)                      ! exponential (base e)
ln(<arg>)                       ! natural logarithm of <arg>
abs(<arg>)                      ! Absolute value of <arg>
 
int(<arg>)                      ! Convert argument to integer
nint(<arg>)                     ! Convert argument to nearest integer
mod(<arg1>,<arg2>)              ! Modulo <arg1> of <arg2>, real arguments
frac(<arg>)                     ! Returns fractional part of <arg>
 
ran(<arg>)                      ! Returns uniformly distributed pseudo
                                  random value 0<= r < 1.
The arguments to any of these functions are any arithmetic expression.

Thomas Proffen {Billinge}
1999-07-20