과제2

1155 days 전, connie0526@naver.com 작성

var('x') f(x)=x/(cos(x)+1) x0=0;y0=f(x0) df(x)= diff(f(x),x) print df(x) 
       
x*sin(x)/(cos(x) + 1)^2 + 1/(cos(x) + 1)
x*sin(x)/(cos(x) + 1)^2 + 1/(cos(x) + 1)
# 접선의 기울기 m=df(x0) p1=plot(f(x), (x, -2, 2)) p2=plot(y0+m*(x-x0), (x, -2, 2), color='brown') show(p1+p2)