Math and angle, arc length, tan and other related algorithms

Source: Internet
Author: User

1  Public classMathdemo {2      Public Static voidMain (string[] args) {3 4         DoubleTan = Math.tan (Math.PI * 45/180);//angle of Tan5         DoubleAA = Math.atan (1) * 180/MATH.PI;//according to Tan angle of request6         Doubledegrees = Math.todegrees (Math.PI);//according to the arc length to seek the angle7         Doubleradians = Math.toradians (180);//arc length based on angle8 System.out.println (tan);9 System.out.println (AA);Ten System.out.println (degrees); One System.out.println (radians); A     } -  -}

Some information is available on the Internet, and there is no detailed description of this piece. You can apply it according to the code above. The angle in math, the conversion of radians should be calculated based on a circle with a radius of 1.

The parameter in tan () is the arc length of the angle. Not the angle. Need attention!

Math and angle, arc length, tan and other related algorithms

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.