C # math class Introduction

Source: Internet
Author: User
Tags natural logarithm rounds
  1. Math. Abs () calculates the absolute value.
  2. Math. ACOs () calculates the arccosine value.
  3. Math. asin () calculates the arcsin value.
  4. Math. atan () calculates the arc tangent value.
  5. Math. atan2 () calculates the point-to-point angle from the X axis.
  6. Math. Ceil () rounds up the number to the nearest integer.
  7. Math. Cos () calculates the cosine value.
  8. Math. exp () calculates the exponent value.
  9. Math. Floor () rounds down the number to the nearest integer.
  10. Math. Log () is used to calculate the natural logarithm.
  11. Math. Max () returns one of the two integers.
  12. Math. Min () returns a smaller integer.
  13. Math. Pow () is used to calculate the Power Y of X.
  14. Math. Random () returns a pseudo-random number between 0.0 and 1.0.
  15. Math. Round () is rounded to the nearest integer.
  16. Math. Sin () calculates the sine value.
  17. Math. SQRT () calculates the square root.
  18. Math. Tan () calculates the tangent.
  19. Math. e Euler (Euler) constant, the base of the natural logarithm (about 2.718 ).
  20. The natural logarithm of math. ln2 2 (approximately 0.693 ).
  21. The base 2 logarithm of math. log2e (about 1.442 ).
  22. The natural logarithm of math. ln2 10 (approximately 2.302 ).
  23. The base-10 logarithm of math. log10e (approximately 0.434 ).
  24. Math. Pi the ratio of the circumference of a circle to its diameter (about 3.14159 ).
  25. The reciprocal of the square root of math. sqrt1_2 1/2 (approximately 0.707 ).
  26. The square root of math. sqrt2 2 (approximately 1.414 ).

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.