IOS math.h Common math functions

Source: Internet
Author: User
Tags pow
1. Trigonometric function
Double sin (double); sine
Double cos (double); cosine
Double tan (double); tangent
2, Inverse trigonometric functions
Double asin (double); Results between [-PI/2, PI/2]
Double ACOs (double); Results between [0, PI]
Double Atan (double); Tangent (primary value), the result is between [-PI/2, PI/2]
Double atan2 (double, double); Tangent (integer circle value), the result is between [-pi, PI]
3. Double Curved Trigonometric Functions
Double Sinh (double);
Double cosh (double);
Double Tanh (double);
4. Index and logarithm
Double exp (double), exponentiation of natural number E
Double sqrt (double) open square
Double log (double); Logarithm with e as the base
Double log10 (double); 10-based logarithm
Double pow (double x, double y); Calculate y-Power with X as base
float POWF (float x, float y); function is consistent with POW, except that both input and output are floating-point numbers
5. Take the whole
Double ceil (double); Take the whole
Double floor (double); Remove the whole
6. Absolute value
Double fabs (double);
Double cabs (struct complex znum); To find the absolute value of plural
7. Standardized floating point numbers
Double Frexp (double f, int *p); Standard floating-point number, F = x * 2^p, known F for X, p (x between [0.5, 1])
Double Ldexp (double x, int p); In contrast to Frexp, known as x, P F
8. Take the whole and take the remainder
Double Modf (double, double*); Returns the integer part of the parameter by the pointer, returning the decimal part
Double Fmod (double, double); Returns the remainder of the divide between two parameters
9. Other
Double Hypot (double x, double y); known right triangle two right-angled edge length, bevel length
Double Ldexp (double x, int exponent); compute x* (exponent power of 2)
Double poly (double x, int degree, double coeffs []), calculating polynomial
NT Matherr (struct exception *e); Math Error Calculation handler

where Math.h put it. That's a C function library: Enter a math function, and then double-click the function--> right button with jump to definition can jump into this header file--> right click the show in Finder, you know where the header file.
Related Article

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.