iOS数学相关

// 反余弦值
extern float acosf(float);
extern double acos(double);
extern long double acosl(long double);

// 反正弦值
extern float asinf(float);
extern double asin(double);
extern long double asinl(long double);

// 反正切值
extern float atanf(float);
extern double atan(double);
extern long double atanl(long double);

// 坐标值的反正切值
extern float atan2f(float, float);
extern double atan2(double, double);
extern long double atan2l(long double, long double);

// 余弦值
extern float cosf(float);
extern double cos(double);
extern long double cosl(long double);

// 正弦值
extern float sinf(float);
extern double sin(double);
extern long double sinl(long double);

// 正切值
extern float tanf(float);
extern double tan(double);
extern long double tanl(long double);

// 反双曲余弦值
extern float acoshf(float);
extern double acosh(double);
extern long double acoshl(long double);

// 反双曲正弦值
extern float asinhf(float);
extern double asinh(double);
extern long double asinhl(long double);

// 反双曲正切值
extern float atanhf(float);
extern double atanh(double);
extern long double atanhl(long double);

// 双曲余弦值
extern float coshf(float);
extern double cosh(double);
extern long double coshl(long double);

// 双曲正弦值
extern float sinhf(float);
extern double sinh(double);
extern long double sinhl(long double);

// 双曲正切值
extern float tanhf(float);
extern double tanh(double);
extern long double tanhl(long double);

// 取自然数e的幂
extern float expf(float);
extern double exp(double);
extern long double expl(long double);

// 计算参数以 2 为底的指数
extern float exp2f(float);
extern double exp2(double);
extern long double exp2l(long double);

// 计算基础 e 指数参数,但不包括 1
extern float expm1f(float);
extern double expm1(double);
extern long double expm1l(long double);

// 以e为底的对数(log10f则为10为底、log2f:2为底 )
extern float logf(float);
extern double log(double);
extern long double logl(long double);

extern float log10f(float);//以10为底的对数
extern double log10(double);
extern long double log10l(long double);

extern float log2f(float);//以2为底的对数
extern double log2(double);
extern long double log2l(long double);

// 浮点数绝对值
extern float fabsf(float);
extern double fabs(double);
extern long double fabsl(long double);

// 立方根
extern float cbrtf(float);
extern double cbrt(double);
extern long double cbrtl(long double);

// 直角三角形的斜边长度,。
extern float hypotf(float, float);
extern double hypot(double, double);
extern long double hypotl(long double, long double);

// n的m次方的值,计算以n为底数的m次幂
extern float powf(float, float);
extern double pow(double, double);
extern long double powl(long double, long double);

// 开平方
extern float sqrtf(float);
extern double sqrt(double);
extern long double sqrtl(long double);


你可能感兴趣的:(iOS数学相关)