
Find the equations of two tangent line
1 回表示 (過去 30 日間)
古いコメントを表示
Find the equations of two tangent lines at x=1 and x=2.
X3+2x2+1. How can I solve it in matlab Thanks
0 件のコメント
採用された回答
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))

その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!