Child pages
  • Math

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rev: 1381949650879

...

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#EE
Euler's constant and the base of natural logarithms.
tbody
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#LN10LN10
Natural logarithm of 10.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#LN2LN2
Natural logarithm of 2.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#LOG10ELOG10E
Base 10 logarithm of E.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#LOG2ELOG2E
Base 2 logarithm of E.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#PIPI
Ratio of the circumference of a circle to its diameter.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#SQRT1SQRT1_2
Square root of 1/2.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#SQRT2SQRT2
Square root of 2.

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

tbody
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
tbody
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#absabs(x)
Returns the absolute value of a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#acosacos(x)
Returns the arccosine (in radians) of a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#asinasin(x)
Returns the arcsine (in radians) of a number.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#atanatan(x)
Returns the arctangent (in radians) of a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#atan2atan2(y, x)
Returns the arctangent of the quotient of its arguments.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#ceilceil(x)
Returns the smallest integer greater than or equal to a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#coscos(x)
Returns the cosine of a number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#expexp(x)
Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#floorfloor(x)
Returns the largest integer less than or equal to a number.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#loglog(x)
Returns the natural logarithm (base E) of a number.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#maxmax(value)
Returns the greater of two (or more) numbers.
tbody
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#minmin(value)
Returns the lesser of two (or more) numbers.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#powpow(base, exponent)
Returns base to the exponent power, that is, base exponent.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#randomrandom()
Returns a pseudo-random number between 0 and 1.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#roundround(x)
Returns the value of a number rounded to the nearest integer.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#sinsin(x)
Returns the sine of a number.
tbody
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#sqrtsqrt(x)
Returns the square root of a number.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#tantan(x)
Returns the tangent of a number.

HTML Table
idproperty
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Property Details
Table Body (tbody)
idE
Table Row (tr)
idname
Table Cell (td)
E
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Euler's constant and the base of natural logarithms. Approximately 2.718.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.E

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idLN10
Table Row (tr)
idname
Table Cell (td)
LN10
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Natural logarithm of 10. Approximately 2.302.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.LN10

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idLN2
Table Row (tr)
idname
Table Cell (td)
LN2
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Natural logarithm of 2. Approximately 0.693.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.LN2

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idLOG10E
Table Row (tr)
idname
Table Cell (td)
LOG10E
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Base 10 logarithm of E. Approximately 0.434.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.LOG10E

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idLOG2E
Table Row (tr)
idname
Table Cell (td)
LOG2E
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Base 2 logarithm of E. Approximately 1.442.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.LOG2E

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idPI
Table Row (tr)
idname
Table Cell (td)
PI
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Ratio of the circumference of a circle to its diameter. Approximately 3.14159.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.PI

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idSQRT1_2
Table Row (tr)
idname
Table Cell (td)
SQRT1_2
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Square root of 1/2. Equivalently, 1 over the square root of 2, approximately 0.707.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.SQRT1_2

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idSQRT2
Table Row (tr)
idname
Table Cell (td)
SQRT2
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Square root of 2. Approximately 1.414.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.SQRT2

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idabs-Number
Table Row (tr)
idname
Table Cell (td)
abs
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
abs
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the absolute value of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.abs(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idacos-Number
Table Row (tr)
idname
Table Cell (td)
acos
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
acos
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the arccosine (in radians) of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.acos(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idasin-Number
Table Row (tr)
idname
Table Cell (td)
asin
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
asin
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the arcsine (in radians) of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.asin(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idatan-Number
Table Row (tr)
idname
Table Cell (td)
atan
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
atan
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the arctangent (in radians) of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.atan(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idatan2-Number_Number
Table Row (tr)
idname
Table Cell (td)
atan2
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
atan2
Span
(y, x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the arctangent of the quotient of its arguments.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} y
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.atan2(number,number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idceil-Number
Table Row (tr)
idname
Table Cell (td)
ceil
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
ceil
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the smallest integer greater than or equal to a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.ceil(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcos-Number
Table Row (tr)
idname
Table Cell (td)
cos
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
cos
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the cosine of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.cos(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexp-Number
Table Row (tr)
idname
Table Cell (td)
exp
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
exp
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.exp(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idfloor-Number
Table Row (tr)
idname
Table Cell (td)
floor
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
floor
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the largest integer less than or equal to a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.floor(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idlog-Number
Table Row (tr)
idname
Table Cell (td)
log
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
log
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the natural logarithm (base E) of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.log(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idmax-NumberArray
Table Row (tr)
idname
Table Cell (td)
max
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
max
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the greater of two (or more) numbers.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number...} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.max(number,number,number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idmin-NumberArray
Table Row (tr)
idname
Table Cell (td)
min
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
min
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the lesser of two (or more) numbers.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number...} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.min(number,number,number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idpow-Number_Number
Table Row (tr)
idname
Table Cell (td)
pow
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
pow
Span
(base, exponent)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns base to the exponent power, that is, base exponent.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} base
{Number} exponent
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.pow(number,number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idrandom
Table Row (tr)
idname
Table Cell (td)
random
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
random
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a pseudo-random number between 0 and 1.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.random()

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idround-Number
Table Row (tr)
idname
Table Cell (td)
round
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
round
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the value of a number rounded to the nearest integer.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.round(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsin-Number
Table Row (tr)
idname
Table Cell (td)
sin
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
sin
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the sine of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.sin(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsqrt-Number
Table Row (tr)
idname
Table Cell (td)
sqrt
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
sqrt
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the square root of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.sqrt(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idtan-Number
Table Row (tr)
idname
Table Cell (td)
tan
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
tan
Span
(x)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the tangent of a number.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

Math.tan(number)

...

Table Row (tr)
classlastDetailRow
Table Cell (td)