自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Objective-C中math.h數(shù)學(xué)計算公式介紹

移動開發(fā) iOS
本文為各位網(wǎng)友介紹了Objective-C中math.h里的數(shù)學(xué)計算公式,相信會對一個擁有求知心的你有所幫助。

1、 三角函數(shù) 
double sin (double); 正弦 
double cos (double);余弦 
double tan (double);正切 

2 、反三角函數(shù)  
double asin (double); 結(jié)果介于[-PI/2, PI/2] 
double acos (double); 結(jié)果介于[0, PI] 
double atan (double); 反正切(主值), 結(jié)果介于[-PI/2, PI/2] 
double atan2 (double, double); 反正切(整圓值), 結(jié)果介于[-PI, PI] 

3 、雙曲三角函數(shù) 
double sinh (double); 
double cosh (double); 
double tanh (double); 

4 、指數(shù)與對數(shù)  
double exp (double);求取自然數(shù)e的冪 
double sqrt (double);開平方 
double log (double); 以e為底的對數(shù) 
double log10 (double);以10為底的對數(shù) 
double pow(double x, double y);計算以x為底數(shù)的y次冪 
float powf(float x, float y); 功能與pow一致,只是輸入與輸出皆為浮點數(shù) 

5 、取整  
double ceil (double); 取上整 
double floor (double); 取下整 

6 、絕對值  
double fabs (double);求絕對值 
double cabs(struct complex znum) ;求復(fù)數(shù)的絕對值 

7 、標(biāo)準化浮點數(shù) 
double frexp (double f, int *p); 標(biāo)準化浮點數(shù), f = x * 2^p, 已知f求x, p ( x介于[0.5, 1] ) 
double ldexp (double x, int p); 與frexp相反, 已知x, p求f 

8 、取整與取余  
double modf (double, double*); 將參數(shù)的整數(shù)部分通過指針回傳, 返回小數(shù)部分 
double fmod (double, double); 返回兩參數(shù)相除的余數(shù) 

9 、其他 
double hypot(double x, double y);已知直角三角形兩個直角邊長度,求斜邊長度 
double ldexp(double x, int exponent);計算x*(2的exponent次冪) 
double poly(double x, int degree, double coeffs [] );計算多項式 
nt matherr(struct exception *e);數(shù)學(xué)錯誤計算處理程序

責(zé)任編輯:閆佳明 來源: oschina
相關(guān)推薦

2011-08-04 15:14:39

Objective-C 數(shù)據(jù)類型

2011-08-17 15:37:23

Objective-C垃圾收集

2011-08-15 17:47:13

Objective-CisMemberOfC

2023-12-06 13:19:00

C++數(shù)學(xué)函數(shù)

2011-08-10 18:07:29

Objective-C反射

2011-07-20 13:34:37

Objective-C self.

2013-03-27 12:54:00

iOS開發(fā)Objective-C

2011-05-11 11:20:26

Objective-C

2011-05-11 15:58:34

Objective-C

2013-06-20 10:40:32

Objective-C實現(xiàn)截圖

2011-07-27 16:18:42

Objective-c 協(xié)議

2011-08-15 17:06:01

Objective-CNSLog

2011-07-08 18:44:09

Objective-C Self Super

2011-08-04 14:58:37

Objective-C Cocoa NSString

2011-08-02 13:16:36

Objective-C 語法 函數(shù)

2011-05-11 13:54:08

Objective-C

2011-05-11 15:45:50

內(nèi)存管理Objective-C

2013-08-21 14:57:42

objective-c問題

2011-05-11 14:06:49

Objective-C

2011-08-04 11:15:46

Objective-C 構(gòu)造函數(shù) 構(gòu)造方法
點贊
收藏

51CTO技術(shù)棧公眾號