Download Magellan Reference Manual

Transcript
13. Calculations
13.4.4 Basic Functions
abs(argument)
This function gives the absolute sum of the argument.
Therefore (-1*x) where x<0 and (x) where x>=0.
Example:
abs(-1) = 1
abs(1) = 1
exp(argument)
This function raises the Euler (e) value to the power of the argument.
1
Example: exp(1) = e = 2.718
frac(argument)
This function separates out the fraction section of argument.
frac(): delivers the fraction section of a decimal value.
Example: frac(1.7) = 0.7
int(argument)
This function separates out the integer sections of argument.
int(): delivers the integer section of a decimal value.
Example: int (1.7) = 1
Log(argument)
log(arg1;arg2)
This function takes the logarithm of arg2 to the base of arg1.
Example:
The well holds a value of 100.
log(x;10)
The result here will be 0.5.
In(argument)
This function takes the natural logarithm of argument.
Example: ln(10) = 2,303
lg(argument)
This function takes the logarithm to base 10 of argument.
Example: lg(10) = 1
round(argument)
This function rounds argument to an integer value.
Example:
To round 12.579 to two decimal places use the following formula:
round(12.579*100)/100
The result is 12.58.
236
Instructions for Use for magellan No. 30066407 Rev No. 1.3
2013-08