Math in a webpage, how utterly boring.
here are the attributes of the Math object, they are well known mathematical constants:

E LN2 LN10 LOG2E LOG10E PI SQRT1_2 (square root of !) SQRT2

and here come the methods of "Math":

abs(), acos(), asin(), atan(), ceil(), cos(), exp(), floor(), log(),
max(), min(), pow(), random(), round(), sin(), sqrt(), tan()

all of this is NS2 compliant