Find the equations of two tangent line

조회 수: 1 (최근 30일)
Hussein Qenawy
Hussein Qenawy 2019년 4월 13일
댓글: darova 2019년 4월 14일
Find the equations of two tangent lines at x=1 and x=2.
X3+2x2+1. How can I solve it in matlab Thanks

채택된 답변

darova
darova 2019년 4월 13일
y(x) = k(x-x0) + y0; % equation of a tangent line
% k=dy/dx - tangent of an angle
% [x0, y0] - coordinates of a point
As you can see you have all data to build your line except k. You can calculate it numerically (using diff() for example) or analytically (differentiate your function k = f'(x))
geg.png
  댓글 수: 1
darova
darova 2019년 4월 14일
Have no whatsapp. WRite me mail nuhrbuh92@gmail.com

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by