2장-과제-오태연(3)

1202 days 전, cntjrskf3 작성

var('x,y') f(x,y)=x^2+2*x*y-y^2+x implicit_plot(f(x, y)==2, (x, -10, 10), (y, -10, 10)) 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, -10, 10), (y, -10, 10)) p2=implicit_plot(y-y0==m(x0,y0)*(x-x0), (x, -10, 10), (y, -10, 10), color='red') show(p1+p2)