Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Sin Method in Javascript

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 114
    Comment on it

    The sin method of javascript defines a sin of a number. Where the number is a numeric expression, representing the size of an angle in radians. See the syntax below -

    Syntax:

    Math.sin(number)
    

    The sin method returns a numeric value between -1 and one, which represents the sin of the argument.

    For Example If you want to get the sin value for a number specified in radians. The function returns a value between -1 and 1 for the given angle. For example lets try to calculate sine value for numbers "1","2".

    document.write('Sine value of 2 is::'+Math.sin(2));
    document.write('Sine value of 1 is::'+Math.sin(1));
    

    Output of the following code:-

    Sine value of 2 is::0.9092974268256817
    Sine value of 1 is::0.8414709848078965 
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: