수학과제-김승엽(2)

1159 days 전, seung7760 작성

var('x') f(x)=x^2-5*x+6 x0=pi;y0=0 df(x)=diff(f(x), x) print df(x) m=df(x0) p1=plot(f(x), (x, -5, 15)) p2=plot(y0+m*(x-x0), (x, -5, 15), color='red') show(p1+p2) 
       
2*x - 5
2*x - 5
f(x)=x^2-5*x+6 p1=plot(f(x), (x, -10, 10)) show(p1)