August 1999
Intermediate to advanced
1488 pages
72h 53m
English
math.asin(num)
The asin() method of the Math object calculates and returns the arcsine of a number. The return value is –PI/2 and PI/2 in radians. If the return value is not within this range, 0 is returned.
Listing 6.153 shows how the asin() method is used.
<html> <body> <script language="JavaScript"> <!–– Hide // function calculates the arcsine of the input number function doMath(){ var inputNum=document.form1.input.value; var result = Math.asin(inputNum); document.form1.answer.value = result; } // End Hide ––> </script> <form name=form1> This example calculates the arcsine of the entered ... |
Read now
Unlock full access