The standard JS Math object, accessible as vexi.math
, with the
addition of methods ‘isNaN’ and ‘isFinite’, and Number
objects ‘NaN’ and ‘Infinity’.
Property  Type  Description 


Number 
The constant ‘e’ 

Number 
The result of 

Number 
The result of 

Number 
The result of 

Number 
The result of 

Number 
The constant ‘pi’ 

Number 
The result of 

Number 
The result of 

Number 
The Number object that represents a nonrepresentable number e.g. 1/0 

Number 
The Number that represents a infinity 
Method  Returns  Description 


Number 
Returns the absolute value of ‘num’ 

Number 
Returns the arc cosine of ‘num’ in radians 

Number 
Returns the arc sine of ‘num’ in radians 

Number 
Returns the arc tangent of ‘num’ in radians 

Number 
Converts the rectangular coordinates ‘x, y’ into polar coordinates and returns the angle portion of the polar coordinates 

Number 
Returns the smallest integer that is larger than ‘num’ 

Number 
Returns the cosine of num where ‘num’ is in radians 

Number 
Returns 

Number 
Returns the largest integer that is smaller than lsquo;num’ 

Boolean 
Returns 

Boolean 
Returns 

Number 
Returns the natural logarithm of ‘num’ i.e. 

Number 
Returns the greater of ‘n1’ and ‘n2’ 

Number 
Returns the lesser of ‘n1’ and ‘n2’ 

Number 
Returns 

Number 
Returns a random floatingpoint number between 0 and 1 

Number 
Returns the closest integer to ‘num’ 

Number 
Returns the sine of num where ‘num’ is in radians 

Number 
Returns the square root of ‘num’ 

Number 
Returns the tangent of num where ‘num’ is in radians 
Copyright © 2011 The Vexi Project (vexi.sourceforge.net)