OC---Math公式
来源:互联网 发布:逛淘宝网 编辑:程序博客网 时间:2024/06/05 22:39
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求f8 、取整与取余
double modf (double,double*);将参数的整数部分通过指针回传, 返回小数部分
double fmod (double,double);返回两参数相除的余数
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);数学错误计算处理程序
- OC---Math公式
- math.h里的数学计算公式
- math.h中常用数学计算公式
- ios oc math.h常用函数
- MATH.H里的一些数学计算的公式
- object-c math.h里的数学计算公式介绍
- object-c math.h里的数学计算公式介绍
- math.h里的数学计算公式介绍
- xdoj 1130 A Simple Math Problem 3 组合公式
- math.h里的数学计算公式介绍
- Hihocoder 1259 A Math Problem(数位DP+公式推导)
- Math
- math
- Math
- Math
- Math
- Math
- math
- 视频基础之线程通讯
- 浅谈Android五大布局(一)——LinearLayout、FrameLayout和AbsoulteLayout
- 嵌入式系统之实时系统调度算法
- mfc入门资料
- iOS 系统控件显示中文
- OC---Math公式
- 从释迦摩尼到爱因斯坦
- WCF与Webservice的区别
- 借款甹个非官方
- 项目中的AppIcon设置问题
- iOS开发笔记--UILabel的相关属性设置
- JBOSS 集群配置
- Android日期时间选择控件使用详解
- 自定义Struts2的拦截器&自定义UserAware接口&Action中模型赋值问题&Hibernate懒加载问题