hahahia

cmath 본문

Language/C++ STL

cmath

hahahia 2012. 3. 24. 11:30

  abs()       -  absolute value 
  floor()      -  largest integer, not greater than
  ceil()       -  smallest integer, no less than
  sin() asin()   -   -π/2 ~ π/2
  cos() acos()  -   0 ~ π
  tan() atan()     
  tan2(y,x)      -   -π ~ π

  log()        -  natural (base e) logarithm
  log10()     -  base 10 logarithm
  pow()       - base raised to the expth power
  sqrt()       -  the square root 
   
    ex)  pow((double)5, (double)3)
          = 5^3 = 125

'Language > C++ STL' 카테고리의 다른 글

set  (0) 2012.03.24
Vector assign  (0) 2012.03.24
vector  (0) 2012.03.24
String Process  (0) 2012.03.24
sstream  (0) 2012.03.24
Comments