Find the equations of two tangent line

4 Ansichten (letzte 30 Tage)
Hussein Qenawy
Hussein Qenawy am 13 Apr. 2019
Kommentiert: darova am 14 Apr. 2019
Find the equations of two tangent lines at x=1 and x=2.
X3+2x2+1. How can I solve it in matlab Thanks

Akzeptierte Antwort

darova
darova am 13 Apr. 2019
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 Kommentar
darova
darova am 14 Apr. 2019
Have no whatsapp. WRite me mail nuhrbuh92@gmail.com

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by