iOS数学相关

iOS数学相关的函数

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// 反余弦值
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);

谢谢!

支付宝
微信
本站总访问量 本文总阅读量 您是第个小伙伴