Changes

JavaScript Math Object

502 bytes added, 20:44, 17 May 2007
no edit summary
<td>sqrt</td>
<td>Square root</td>
</table>
 
In addition the math object contains a number of properties for accessing mathematical constants:
 
<table border="1" cellspacing="0">
<tr>
<th>Property</th>
<th>Description</th>
<tr>
<td>E<td>Euler's constant</td>
<tr>
<td>LN2<td>Natural log of 2</td>
<tr>
<td>LN10<td>Natural log of 10</td>
<tr>
<td>LOG2E<td>Log base -2 of E</td>
<tr>
<td>LOG10E<td>Log base -10 of E</td>
<tr>
<td>PI<td>Value of Pi</td>
<tr>
<td>SQRT1_2</td>Square root of 0.5</td>
<tr>
<td>SQRT2</td>Square root of 2</td>
</table>