把iOS开发中常用的一些数学函数记下来方便以后查阅。
三角函数
1 2 3
| double sin (double); double cos (double); double tan (double);
|
反三角函数
1 2 3 4
| double asin (double); double acos (double); double atan (double); double atan2 (double, double);
|
双曲三角函数
1 2 3
| double sinh (double); double cosh (double); double tanh (double);
|
指数与对数
1 2 3 4 5 6
| double exp (double); double sqrt (double); double log (double); double log10 (double); double pow (double x, double y); float powf (float x, float y);
|
取整
1 2
| double ceil (double); double floor (double);
|
绝对值
1 2
| double fabs (double); double cabs(struct complex znum) ;
|
标准化浮点数
1 2
| double frexp (double f, int *p); double ldexp (double x, int p);
|
取整与取余
1 2
| double modf (double, double*); double fmod (double, double);
|
其他
1 2 3 4
| double hypot(double x, double y); double ldexp(double x, int exponent); double poly(double x, int degree, double coeffs [] ); nt matherr(struct exception *e);
|