C, C++/Code Keeping

cmath 헤더를 이용한 제곱근과 거듭제곱 함수

batsalee 2015. 12. 31. 00:48
#include <cmath>
sqrt(더블형변수) => 루트처리 되서 제곱근 구해지고
pow(더블형변수x, 더블형변수y)  => x의  y승이 구해짐