beautypg.com

Math & trig functions – Juniper Systems Allegro CE Manual User Manual

Page 181

background image

Windows CE Page 4-121

Math & Trig Functions

Abs(number) Returns the absolute value of a number. Example: Abs

(-3)

equals 3.

Acos(number) Returns the arccosine of a number. The number must be from
-1 to 1.
Example: Acos(-0.5) equals 2.094395.

Acosh(number) Returns the inverse hyperbolic cosine of a number. The
number must be greater or equal to 1.
Example: Acosh(1) equals 0.04613.

Asin(number) Returns the arcsine of a number. The number must be from -
1 to 1.
Example: Asin(-0.5) equals -0.5236.

Asinh(number) Returns the inverse hyperbolic sine of a number. Example:
Asinh(8) equals 2.77647.

Atan(number) Returns the arctangent of a number.
Example: Atan(0.5) equals 0.46365.

Atan2(x,y) Returns the arctangent of the specified x and y coordinates.
Example: Atan2(1, 1) equals 0.785398.

Atanh(number) Returns the inverse hyperbolic tangent of a number. The
number must be between -1 and 1 (excluding -1 and 1).
Example: Atanh(-0.1) equals -0.10034.

Ceiling(number, significance) Returns the number rounded up to the
nearest multiple of the significance.
Example: Ceiling(10.43, 0.1) equals 10.5.

Combin(number, numberChosen) Returns the number of combinations.
Number is the number of items, numberChosen is the number of items in
each combination.
Example: Combin(10, 2) equals 45.

Cos(number) Returns the cosine of the given angle.
Example: Cos(0.5) equals 0.87758.

Cosh(number) Returns the hyperbolic cosine of a number.
Example: Cosh(5) equals 74.20995.

Degrees(number) Converts radians into degrees.
Example: Degrees(Pi()/2) equals 90.

Even(number) Returns the number rounded up to the nearest even integer.
Example: Even(1.3) equals 2.

Exp(number) Returns e raised to the power of the number.
Example: Exp(Ln(2)) equals 2.