2장(1)-이현아

1205 days 전, gusdk5531 작성

var('x') f(x)=4*(sin(x))^2 x0=pi/6;y0=1 df(x)= diff(f(x),x) print df(x) 
       
8*cos(x)*sin(x)
8*cos(x)*sin(x)
m=df(x0) p1=plot(f(x), (x,0,2*pi)) p2=plot(y0+m*(x-x0),(x,0,6),color='red') show(p1+p2)