일반수학및실습2-12.3절

2080 days 전, jhlee2chn 작성

예.

var('x, y') f(x, y)=x^2*y+3*y^3 fx(x, y)=diff(f(x, y), x);fy(x, y)=diff(f(x, y), y) print fx(1, 2) print fy(1, 2) 
       
4
37
4
37

예.

var('x, y') f(x, y)=x^2*sin(x*y^2) fx(x, y)=diff(f(x, y), x);fy(x, y)=diff(f(x, y), y) print fx(x, y) print fy(x, y) 
       
x^2*y^2*cos(x*y^2) + 2*x*sin(x*y^2)
2*x^3*y*cos(x*y^2)
x^2*y^2*cos(x*y^2) + 2*x*sin(x*y^2)
2*x^3*y*cos(x*y^2)

예.

var('x, y') f(x, y)=x*exp(y)-sin(x/y)+x^3*y^2 fx(x, y)=diff(f(x, y), x);fy(x, y)=diff(f(x, y), y) fxx(x, y)=diff(fx, x);fxy(x, y)=diff(fx, y) fyx(x, y)=diff(fy, x);fyy(x, y)=diff(fy, y) print fxx(x, y) print fxy(x, y) print fyx(x, y) print fyy(x, y) 
       
6*x*y^2 + sin(x/y)/y^2
6*x^2*y + cos(x/y)/y^2 - x*sin(x/y)/y^3 + e^y
6*x^2*y + cos(x/y)/y^2 - x*sin(x/y)/y^3 + e^y
2*x^3 + x*e^y - 2*x*cos(x/y)/y^3 + x^2*sin(x/y)/y^4
6*x*y^2 + sin(x/y)/y^2
6*x^2*y + cos(x/y)/y^2 - x*sin(x/y)/y^3 + e^y
6*x^2*y + cos(x/y)/y^2 - x*sin(x/y)/y^3 + e^y
2*x^3 + x*e^y - 2*x*cos(x/y)/y^3 + x^2*sin(x/y)/y^4