C語言是一種計算機程式設計語言,它既具有高階語言的特點,又具有組合語言的特點。下面是小編收集整理的語言數學函式的介紹,希望對您有所幫助!
c語言數學函式的介紹1、函式名: abs
功 能: 求整數的絕對值
用 法: int abs(int i);
2、函式名: acos
功 能: 反餘弦函式
用 法: double acos(double x);
3、函式名: asin
功 能: 反正弦函式
用 法: double asin(double x);
4、函式名: atan
功 能: 反正切函式
用 法: double atan(double x);
5、函式名: atan2
功 能: 計算Y/X的反正切值
用 法: double atan2(double y, double x);
6、函式名: cabs
功 能: 計算複數的`絕對值
用 法: double cabs(struct complex z);
7、函式名: ceil
功 能: 向上舍入
用 法: double ceil(double x);
8、函式名: cos功 能: 餘弦函式
用 法: double cos(double x);
9、函式名: cosh
功 能: 雙曲餘弦函式
用 法: dluble cosh(double x);
10、函式名: div
功 能: 將兩個整數相除, 返回商和餘數
用 法: div_t (int number, int denom);
11、函式名: exp
功 能: 指數函式
用 法: double exp(double x);
12、函式名: fabs
功 能: 返回浮點數的絕對值
用 法: double fabs(double x);
13、函式名: floor
功 能: 向下舍入
用 法: double floor(double x);
14、函式名: fmod
功 能: 計算x對y的模, 即x/y的餘數
用 法: double fmod(double x, double y);
15、函式名: labs
功 能: 取長整型絕對值
用 法: long labs(long n);
16、函式名: ldiv
功 能: 兩個長整型數相除, 返回商和餘數
用 法: ldiv_t ldiv(long lnumer, long ldenom);
17、函式名: log
功 能: 對數函式ln(x)
用 法: double log(double x);
18、函式名: log10
功 能: 對數函式log
用 法: double log10(double x);
19、函式名: modf
功 能: 把數分為指數和尾數
用 法: double modf(double value, double *iptr);
20、函式名: pow
功 能: 指數函式(x的y次方)
用 法: double pow(double x, double y);
21、函式名: pow10
功 能: 指數函式(10的p次方)
用 法: double pow10(int p);
22、函式名: sprintf
用 法: int sprintf(char *string, char *farmat [,argument,...]);
23、函式名: sqrt
功 能: 計算平方根
用 法: double sqrt(double x);
24、函式名: sin
功 能: 正弦函式
用 法: double sin(double x);
25、函式名: sinh
功 能: 雙曲正弦函式
用 法: double sinh(double x);
26、函式名: tan功 能: 正切函式
用 法: double tan(double x);
27、函式名: tanh
功 能: 雙曲正切函式
用 法: double tanh(double x);