과제2

1200 days 전, connie0526@naver.com 작성

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