Some common mathematical functions

Source: Internet
Author: User
Tags mathematical functions natural logarithm

13 Corner function
Double sin (double);
Double cos (double);
Double tan (double);
2 Inverse trigonometric function
Double asin (double); Results between [-PI/2, PI/2]
Double ACOs (double); Results between [0, PI]
Double Atan (double); Inverse tangent (main value), result between [-PI/2, PI/2]
Double atan2 (double, double); Arc Tangent (integer value), resulting in [-PI/2, PI/2]
3 Hyperbolic trigonometric Functions
Double Sinh (double);
Double cosh (double);
Double Tanh (double);
4 Index and logarithm
Double exp (double);
Double pow (double, double);
Double sqrt (double);
Double log (double); Logarithm with e as the base
Double log10 (double); natural logarithm function in C + +: Log (n) base 10: log10 (N) but no base 2 function but can be resolved with a bottom-changer formula: log2 (n) =log10 (n)/log10 (2)
5 rounding
Double ceil (double); Take the whole
Double floor (double); Remove the entire
6 absolute Value
Double fabs (double);
7 standardized floating-point numbers
Double Frexp (double f, int *p); Normalized floating-point numbers, f = x * 2^p, known F for X, p (x between [0.5, 1])
Double Ldexp (double x, int p); In contrast to Frexp, X, p is known to ask F
8 rounding and taking out the remainder
Double Modf (double, double*); Returns the integer part of the argument through the pointer, returning the fractional part
Double Fmod (double, double); Returns the remainder of dividing two arguments

Some common math functions

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.