무제

1153 days 전, dmim9900 작성

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