c語言數學函數的介紹
c語言數學函數的介紹
(相關資料圖)
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);
詞條內容僅供參考,如果您需要解決具體問題
(尤其在法律、醫學等領域),建議您咨詢相關領域專業人士。