iOS中math.h常用函数说明
来源:互联网 发布:双手简谱制作软件 编辑:程序博客网 时间:2024/05/18 19:47
1、 三角函数
double sin (double);正弦
double cos (double);余弦
double tan (double);正切
2 、反三角函数
double asin (double); 结果介于[-PI/2, PI/2]
double acos (double); 结果介于[0, PI]
double atan (double); 反正切(主值), 结果介于[-PI/2, PI/2]
double atan2 (double, double); 反正切(整圆值), 结果介于[-PI, PI]
3 、双曲三角函数
double sinh (double);
double cosh (double);
double tanh (double);
4 、指数与对数
double exp (double);求取自然数e的幂
double sqrt (double);开平方
double log (double); 以e为底的对数
double log10 (double);以10为底的对数
double pow(double x, double y);计算以x为底数的y次幂
float powf(float x, float y); 功能与pow一致,只是输入与输出皆为浮点数
5 、取整
double ceil (double); 取上整
double floor (double); 取下整
6 、绝对值
double fabs (double);求绝对值
double cabs(struct complex znum) ;求复数的绝对值
7 、标准化浮点数
double frexp (double f, int *p); 标准化浮点数, f = x * 2^p, 已知f求x, p ( x介于[0.5, 1] )
double ldexp (double x, int p); 与frexp相反, 已知x, p求f
8 、取整与取余
double modf (double, double*); 将参数的整数部分通过指针回传, 返回小数部分
double fmod (double, double); 返回两参数相除的余数
9 、其他
double hypot(double x, double y);已知直角三角形两个直角边长度,求斜边长度
double ldexp(double x, int exponent);计算x*(2的exponent次幂)
double poly(double x, int degree, double coeffs [] );计算多项式
nt matherr(struct exception *e);数学错误计算处理程序
0 0
- iOS中math.h常用函数说明
- iOS math.h 常用数学函数
- ios oc math.h常用函数
- iOS math.h 常用数学函数
- iOS math.h 常用数学函数
- iOS math.h 常用数学函数
- iOS中常用math函数
- math.h中一些常用函数
- math.h中一些常用函数
- math.h中一些常用函数
- math.h中一些常用函数
- math.h中一些常用函数
- iOS中的math.h中一些函数
- IOS math.h函数
- IOS-升级103 iOS math.h 常用数学函数
- ios math.h 常用数学函数
- math.h常用数学函数
- math.h中的常用函数
- Linux常用命令集锦
- Java 语言中 Enum 类型的使用介绍
- HDOJ 5532 Almost Sorted Array (正反LIS判断顺序)
- 可变参数列表(2)
- [IOSS]UITableView分组
- iOS中math.h常用函数说明
- Is it possible to change Agile Web Client login from port 7001 to the default port 80 in Weblogic?
- debian squeeze安装ibus
- [UVA 10891] Game of Sum
- Android:onNewIntent()触发机制及注意事项
- 2015前端框架何去何从
- 数据库连接
- 关于从activity跳转到fragment里面的问题
- 关于弹出bootstrip的模态框示例