제2장

185 days ago by 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 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)