무제

1716 days 전, gpdnjs0515@naver.com 작성

var('x') f(x)=e^x*cos(x) x0=0;y0=f(x0) df(x)=diff(f(x), x) # 미분 print df(x) 
       
cos(x)*e^x - e^x*sin(x)
cos(x)*e^x - e^x*sin(x)
m=df(x0) p1=plot(f(x), (x,-2, 2)) p2=plot(y0+m*(x-x0), (x, -1, 1), color='red') show(p1+p2)