Introduction to mathematical formula of MATH.H in Objective-c

Source: Internet
Author: User
Tags base 10 logarithm

1. Trigonometric Functions
Double sin (double); Sinusoidal
Double cos (double); cosine
Double tan (double); tangent

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); Tangent (rounded value), results in [-pi, PI]

3. Hyperbolic trigonometric Functions
Double Sinh (double);
Double cosh (double);
Double Tanh (double);

4. Exponent and logarithm
Double exp (double), the power of the natural number E
Double sqrt (double); open square
Double log (double); Logarithm with e as the base
Double log10 (double); base 10 logarithm
Double pow (double x, double y); calculates the X-based Y-power
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 entire

6. Absolute value
Double fabs (double);
Double cabs (struct complex znum), the absolute value of the plural

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, take the whole and take 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

9. Other
Double Hypot (double x, double y), known right triangle two right angle side length, to seek hypotenuse length
Double Ldexp (double x, int exponent), calculation x* (exponent power of 2)
Double poly (double x, int degree, double coeffs []), calculation polynomial
NT Matherr (struct exception *e); Math Error Calculation handler

Introduction to mathematical formula of MATH.H in Objective-c

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.