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);
-
2017年C語言新增無紙化真題練習
C語言的應用範圍廣泛,具備很強的資料處理能力,不僅僅是在軟體開發上,而且各類科研都需要用到C語言,適於編寫系統軟體,三維,二維圖形和動畫,具體應用比如微控制器以及嵌入式系統開發。以下是小編為大家搜尋整理的2017年C語言新增無紙化真題練習,希望能給大家帶來幫助!更多...
-
關於C語言精選模擬練習題
C語言是一個有結構化程式設計、具有變數作用域(variablescope)以及遞迴功能的過程式語言。下面是小編為大家整理的關於C語言精選模擬練習題,歡迎參考~5:請編寫一個函式fun,它的功能是:比較兩個字串的長度,(不得呼叫c語言提供的`求字串長度的函式),函式返回較長...
-
c語言中多個if的用法
c語言中多個if的用法的用法你知道嗎?下面小編就跟你們詳細介紹下c語言中多個if的用法的用法,希望對你們有用。c語言中多個if的用法的用法如下:用if語句可以構成分支結構。它根據給定的條件進行判斷,以決定執行某個分支程式段。C語言的if語句有三種基本形式。語句的...
-
2017年3月計算機二級C語言考試摸底測試題
以下是yjbys考試網小編整理的2017年3月計算機二級C語言考試摸底測試題,希望對大家有所幫助,祝大家計算機二級考試順利通過。一、選擇題(每小題1分。)(1)程式流程圖中帶有箭頭的線段表示的是()。A.圖元關係B.資料流C.控制流D.呼叫關係(2)結構化程式設計的基本原則...