c语言得到系统的函数,c语言系统函数(C language system function).doc

c语言系统函数(C language system function)

c语言系统函数(C language system function)

Mathematical function "math.h""

1, integer absolute function

[function head]int ABS (int x)

[return value] the absolute value of the parameter x (integer) (|x|).

[description] the return value of this function is 0~32767. If the value of X is -32768, the return value is -32768.

2, long integer absolute value function

[function head]long labs (long x)

[return value] the absolute value of the parameter x (long integer) (|x|).

3. Realistic absolute value function

[function head]double Fabs (double x)

[return value] the absolute value of the parameter x (real type) (|x|).

4, seek less than or equal to the maximum integer function of X

[function head]double floor (double x)

[return value] the maximum integer less than or equal to the parameter X.

5. Seek the smallest integer function greater than or equal to X

[function head]double ceil (double x)

[return value] the smallest integer greater than or equal to the parameter X.

6, positive square root function

[function head]double sqrt (double x)

[return value] the positive square root of argument x.

[indicates that the value of]x should be greater than or equal to O.

7, for common logarithmic function

[function head]double log10 (double x)

[return value] the common logarithm of parameter X (log10x).

[description]x should be >0.

8, the natural logarithm function

[function head]double log (double x)

[return value] the natural logarithm of parameter x (LN, X).

[description]x should be >O.

9, for exponential function

[function head]double exp (double x)

[return value] the exponent X of parameter ex.

10, find the X 1O quadratic function

[function head]double pow10 (int x)

[return value]10, x, 10x.

11, find the Y x quadratic function

[function head]double pow (double, x, double, y)

[return value] parameter x, y th (XY).

[description] x and y were not

12, sine function

[function head]double sin (douhle x)

[return value] the sine v

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值