网站大量收购独家精品文档,联系QQ:2885784924

标准C语言部分库函数.doc

  1. 1、本文档共9页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
标准c数学函数 abs 语法: ? #include stdlib.h int abs( int num ); 功能: 函数返回参数num.的绝对值。例如: int magic_number = 10; cout Enter a guess: ; cin x; cout Your guess was abs( magic_number - x ) away from the magic number. endl; 相关主题: labs(). acos 语法: ? #include math.h double acos( double arg ); 功能:函数返回参数arg的反余弦值。参数arg 应当在-1和1之间。 相关主题: asin(), atan(), atan2(), sin(), cos(), tan(), sinh(), cosh(), and tanh(). asin 语法: ? #include math.h double asin( double arg ); 功能:函数返回参数arg的反正弦值。参数arg 应当在-1和1之间。 相关主题: acos(), atan(), atan2(), sin(), cos(), tan(), sinh(), cosh(), and tanh(). atan 语法: ? #include math.h double atan( double arg ); 功能:函数返回参数arg的反正切值。 相关主题: asin(), acos(), atan2(), sin(), cos(), tan(), sinh(), cosh(), and tanh(). atan2 语法: ? #include math.h double atan2( double y, double x ); 功能:函数计算y/x的反正切值,按照参数的符号计算所在的象限。 相关主题: asin(), acos(), atan(), sin(), cos(), tan(), sinh(), cosh(), and tanh(). ceil 语法: ? #include math.h double ceil( double num ); 功能: 函数返回参数不小于num 的最小整数。例如, y = 6.04; x = ceil( y ); x为7.0. 相关主题: floor() and fmod(). cos 语法: ? #include math.h double cos( double arg ); 功能: 函数返回参数arg的余弦值,arg以弧度表示给出。 相关主题: asin(), acos(), atan(), sin(), atan2(), tan(), sinh(), cosh(), and tanh(). cosh 语法: ? #include math.h double cosh( double arg ); 功能: 函数返回参数arg的双曲余弦值。 相关主题: asin(), acos(), atan(), sin(), atan2(), tan(), sinh(), cos(), and tanh(). div 语法: ? #include stdlib.h div_t div( int numerator, int denominator ); 功能: 函数返回参数numerator / denominator的商和余数。结构类型div_t定义在stdlib.h中: int quot; // 商数 int rem; // 余数 例, 以下代码显示x/y的商和余数: div_t temp; temp = div( x, y ); printf( %d divided by %d yields %d with a remainder of %d\n, x, y, temp.quot, temp.rem ); 相关主题: ldiv(). exp 语法: ? #include math.h double exp( double arg ); 功能: 函数返回参数returns e (2.7182818) 的arg次幂。 相关主题: log(). fabs 语法: ? #include math.h double fabs( double arg ); 功能: 函数返回参数arg的绝对值。 相关

文档评论(0)

___________ + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档