|
|
 |

|
Math Constructor
|
| E |
The natural logarithm base, 2.718281828459045
|
| LN10 |
The natural logarithm of 10.
|
| LN2 |
The natural logarithm of 2.
|
| LOG2E |
The base-2 logarithm of E.
|
| LOG10E |
The base-10 logarithm of E.
|
| PI |
Pi, 3.141592653589793
|
| SQRT1_2 |
The square root of 0.5.
|
| SQRT2 |
The square root of 2.
|
| abs(x) |
The absolute value of x.
|
| asin(x) |
The arc-sine of x.
|
| acos(x) |
The arc-cosine of theta.
|
| atan(x) |
The arc-tangent of x.
|
| atan2(x, y) |
The arc-tangent of the point (x, y).
|
| ceil(x) |
The smallest integer greater than x
|
| cos(theta) |
The cosine of theta.
|
| exp(x) |
e to the power of x.
|
| floor(x) |
The largest integer less than x
|
| log(x) |
The natural logarithm of x.
|
| max(x1, ..., xn) |
The largest value of x1 through xn.
|
| min(x1, ..., xn) |
The smallest value of x1 through xn.
|
| pow(x, y) |
x to the power of y.
|
| random([n]) |
Returns a random number from 0.0 to 1.0. If n is given, returns
a random integer from 0 to n, non-inclusive.
|
| round(x) |
The nearest integer to x.
|
| setRandomSeed(seed) |
Sets the random number seed to seed.
|
| sin(theta) |
The sine of theta.
|
| sqrt(x) |
The square root of x.
|
| tan(theta) |
The tangent of theta.
|
The natural logarithm base, 2.718281828459045
The natural logarithm of 10.
The natural logarithm of 2.
The base-2 logarithm of E.
The base-10 logarithm of E.
Pi, 3.141592653589793
The square root of 0.5.
The square root of 2.
The absolute value of x.
The arc-sine of x.
The arc-cosine of theta.
The arc-tangent of x.
The arc-tangent of the point (x, y).
The smallest integer greater than x
The cosine of theta.
e to the power of x.
The largest integer less than x
The natural logarithm of x.
The largest value of x1 through xn.
The smallest value of x1 through xn.
x to the power of y.
Returns a random number from 0.0 to 1.0. If n is given, returns
a random integer from 0 to n, non-inclusive.
The nearest integer to x.
Sets the random number seed to seed.
The sine of theta.
The square root of x.
The tangent of theta.
Copyright © 1998-2000 Caucho Technology. All rights reserved.
Last modified: Thu, 16 Sep 1999 14:56:48 -0700 (PDT)
|