Trigonometric functions and JavaScript

Source: Internet
Author: User
Tags cos sin

1. Trigonometric Functions

    • sin& (ratio of edge to hypotenuse) cos& (ratio of adjacent edge to hypotenuse) tan& (ratio of edge to adjacent edge)

The use of 2.JavaScript functions

    • Math.sin ()
    • Math.Cos ()
    • Math.tan ()

3. Angle

    • The relationship between angle and radian
      • 1 radians equals the radius of R
      • 360=2π
      • 1 degrees of the radian of the JS notation 1*math.pi/180
      • To find the length of the Edge is Math.sin (math.pii/180) *r;
      • The length of the adjacent Edge is Math.Cos (math.pi/180) *r;
      • The length of the adjacent Edge is Math.tan (math.pi/180) *r;

4. Examples of circular motions

<! DOCTYPE html>

  

 

Trigonometric functions and JavaScript

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.