JavaScript Tutorial/Math/LN2

Материал из Web эксперт
Перейти к: навигация, поиск

Math.LN2

The LN2 property of the Math object is used to get the natural logarithm of 2.

This is approximately equal to 0.693.



   <source lang="javascript">

<html>

   <body>
   <script language="JavaScript">
   
   </script>
   <form name=form1>
   The Natural Logarithm of 2 is:
   <input type="text" name="answer" size=20>
   <input type="button" value="Calculate" onClick="doMath()">
   
</form> </body> </html></source>

The value of the natural Logarithm of 2

   <source lang="javascript">

<html> <head> <title>The Properties of the Math object</title> <script type="text/javascript" language="javascript">

</script> </head> <body onload="DisplayMath()"> </body> </html></source>