JavaScript Reference/Javascript Methods/sin

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

"sin()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="alert(Math.sin(1));">SIN</button> </body> </html>


     </source>
   
  


"sin()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |Math | +----------------+--------------------------------------------------------------+

     </source>
   
  


"sin()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Sine of the specified number.

Syntax:

Math.sin(param1) Parameters:

   param1   Required; the number to convert.
   
     
     </source>