cmath(math.h)
来源:互联网 发布:js文字展开折叠效果 编辑:程序博客网 时间:2024/05/21 17:52
转载来自kb神的推荐:http://cplusplus.com/reference/clibrary/cmath/
很多基础的东西都没有记住啊
注意数据类型的定义,貌似用double比较保险的说。。。
header
cmath (math.h)
C numerics library
cmath declares a set of functions to compute common mathematical operations and transformations:Trigonometric functions:
- cos
- Compute cosine (function) 计算余弦
- sin
- Compute sine (function) 计算正弦
- tan
- Compute tangent (function) 计算正切
- acos
- Compute arc cosine (function) 计算反余弦
- asin
- Compute arc sine (function) 计算反正弦
- atan
- Compute arc tangent (function) 计算反正切
- atan2
- Compute arc tangent with two parameters (function) 计算反正切与两个参数
Hyperbolic functions:
- cosh
- Compute hyperbolic cosine (function) 计算双曲余弦
- sinh
- Compute hyperbolic sine (function) 计算双曲正弦
- tanh
- Compute hyperbolic tangent (function) 计算双曲正切
Exponential and logarithmic functions:
- exp
- Compute exponential function (function) 计算指数函数
- frexp
- Get significand and exponent (function) 得到有效数字和指数
- ldexp
- Generate number from significand and exponent (function)生成数字和指数有效数字
- log
- Compute natural logarithm (function) 计算自然对数
- log10
- Compute common logarithm (function) 计算常用对数
- modf
- Break into fractional and integral parts (function) 闯入分数和不可分割的组成部分
Power functions
- pow
- Raise to power (function )
- sqrt
- Compute square root (function)计算平方根
Rounding, absolute value and remainder functions:
- ceil
- Round up value (function) 返回大于或者等于指定表达式的最小整数
- fabs
- Compute absolute value (function) 计算绝对值
- floor
- Round down value (function) 四舍五入价值
- fmod
- Compute remainder of division (function) 求模运算
C函数名: fmod
功 能: 计算x对y的模, 即x/y的求余运算 (参见百科词条 mod 中的“求余函数” 条目),若y是0,则返回NaN。 用 法: double fmod(double x, double y);- cmath(math.h)
- <cmath> (math.h)
- 整理:<cmath> (<math.h>)
- C++库文件 <cmath> (math.h)
- math,h和cmath.h有什么区别
- [C/C++]C语言中math.h和cmath的pow()精度问题
- python之math,cmath模块
- C/C++笔试必须熟悉掌握的头文件系列(二)——math.h/cmath
- C/C++笔试必须熟悉掌握的头文件系列(二)——math.h/cmath
- 关于cmath.h头文件
- cmath
- cmath
- cmath
- math.h
- Math.h
- math.h
- math.h
- math.h
- Windowsphone7下载文件的方法
- C# 文件下载四方法--TransmitFile实现下载、WriteFile实现下载、WriteFile分块下载、流方式下载
- 0.ring0-内存可读、可写、有效性、指针是否为空、深度校验字符串(随手代码)
- javascript 夯实基础
- 每天学习android之service
- cmath(math.h)
- 下载高通android 部分源码方法
- WinDbg配置和使用基础
- 为什么adrl r2,mem_cfg_val这里不用ldr r2,=mem_cfg_val,
- 为sourceinsight添加新类型支持kconfig和makefile
- 可伸缩性最佳实践:来自eBay的经验
- poj 2186 Popular Cows (tarjan + 缩点)
- 配置自定义拦截器(全局配置)
- android问题