Functions
Top  Previous  Next

Definition

( varname )

(
varname operator value | varname | mathfunction )

(
varname = varname operator value | varname | mathfunction )

Varname
Variable name may be any alphanumeric name starting with the letter A thru Z but must not be:
R0 thru R9 which are reserved as a form of the repeat command and,
must not be any of the math function names.

Operators
+   Used to sum two numbers   
-   Used to find the difference between two numbers
/   Used to divide two numbers
*   Used to multiply two numbers
^   Used to raise a number to the power of an exponent
%   Used to divide two numbers and return only the remainder


Math functions

ABS(x)
Returns the absolute value of a number
The absolute value of a number is its unsigned magnitude.
For example, ABS(-1) and ABS(1) both return 1.
ACOS(x)
Inverse Cosine
ACOS(x) = ATAN(-x / SQR(-x * x + 1)) + 2 * ATAN(1)
ASIN(x)
Inverse Sine
ASIN(x) = ATAN(x / SQR(-x * x + 1))
ATAN(x)
Returns the arctangent of a number.
The Atan function takes the ratio of two sides of a right triangle (number) and returns the corresponding angle in radians. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.
The range of the result is -pi/2 to pi/2 radians.
COS(x)
Returns the cosine of an angle x.
The angle must be expressed in radians.
The Cos function takes an angle and returns the ratio of two sides of a right triangle. The ratio is the length of the side adjacent to the angle divided by the length of the hypotenuse.
The result lies in the range -1 to 1.
COT(x)
Cotangent
COT(x) = 1 / TAN(x)
CSC(x)
Cosecant
CSC(x) = 1 / SIN(x)
DTR(x)
Converts x from degrees to radians.
To convert degrees to radians, the degrees are multiply by pi/180
EXP(x)
Returns e (the base of natural logarithms) raised to a power.
If the value of number exceeds 709.782712893, an error occurs. The constant e is approximately 2.718282.
The Exp function complements the action of the Log function and is sometimes referred to as the antilogarithm.
INT(x)
Returns the integer portion of x.
Int returns the first negative integer less than or equal to number.
For example, Int converts -7.4 to -8
LN(x)
Returns the natural logarithm of a number.
The natural logarithm is the logarithm to the base e. The constant e is approximately 2.718282.
LOG(x,y)
Returns the logarithm of a number x in the base y. Also see LN
The logarithm in base y for any number x is calculated by dividing the natural logarithm of x by the natural logarithm of y as follows:
Log(x) = LN(x) / LN(y)
RTD(x)
Converts x from radians to degrees.
To convert radians to degrees, the radians are multiply by 180/pi.
SEC(x)
Secant
SEC(x) = 1 / COS(x)
SGN(x)
Returns an integer indicating the sign of x.
If x is greater that zero, SGN returns 1.
If x is equal to zero, SGN returns 0.
If x is less that zero, SGN returns -1.
SIN(x)
Returns the sine of an angle x
The angle must be expressed in radians.
The Sin function takes an angle and returns the ratio of two sides of a right triangle. The ratio is the length of the side opposite the angle divided by the length of the hypotenuse.
The result lies in the range -1 to 1.
SQR(x)
Returns the square root of a number.
The value of x must be greater than or equal to zero.
TAN(x)
Returns a Double specifying the tangent of an angle.
The angle must be expressed in radians.
Tan takes an angle and returns the ratio of two sides of a right triangle. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.