무제

1192 days 전, jaehee18 작성

var('x,y') f(x,y)=x^2+x*y+y^2 implicit_plot(f(x, y)==3, (x, -6, 6), (y, -6, 6)) fx=diff(f(x, y), x) fy=diff(f(x, y), y) m(x,y)=-fx/fy x0=1 y0=1 p1=implicit_plot(f(x, y)==3, (x, -6, 6), (y, -6, 6)) p2=implicit_plot(y-y0==m(x0,y0)*(x-x0), (x, -6, 6), (y, -6, 6), color='red') show(p1+p2) 
       
var('x,y') f(x,y)=x^2+2*x*y-y^2+x fx=diff(f(x,y),x) fy=diff(f(x,y),y) m(x,y)=-fx/fy x0=1 y0=2 p1=implicit_plot(f(x,y)==2,(x,-4,4),(y,-4,4)) p2=implicit_plot(y-y0==m(x0,y0)*(x-x0),(x,-4,4),(y,-4,4),color='red') show(p1+p2) 
       
var('x') f(x)=3*x^2-x^3 x0=1;y0=2 df(x)=diff(f(x), x) # 미분 m=df(x0) # 접선의 기울기 p1=plot(f(x), (x, 0, 2.5)) p2=plot(y0+m*(x-x0), (x, 0, 2.5), color='red') show(p1+p2)