include "../../common/header.inc"; ?>
○ 미분(D)
D[x Sin[x]^2, x]
○ 적분(Integrate)
Integrate[x Sin[x]^2, x]
Integrate[x Sin[x]^2, {x, 0, 1}] // 구간 0 ~ 1에서 적분
f[x_] = Integrate[Exp[-t^2], {t, 0, x}]
결과는 Sqrt[Pi] Erf[x] / 2 로 나타난다. 여기서 Erf는 확률 이론에서 주로 이용하는 error 함수이다.
○ 근사값(N)
N[%] // 방금 전 출력을 근사값으로 확인
○ 수치적 적분(NIntegrate)
NIntegrate[x Sin[x]^2, {x, 0, 1}] // 구간 0 ~ 1에서 수치적 적분