MATLAB Answers

How do I properly code a Taylor Series for tan(x)?

조회 수: 19(최근 30일)
George Caspelli
George Caspelli 2021년 3월 11일
댓글: John D'Errico 2021년 5월 7일
In terms of tan(x) with a=0, how would I code the approximation of a Taylor Series from n = 1:4? I get it on paper, but I can't seem to wrap my head around the Matlab code.
  댓글 수: 3
John D'Errico
John D'Errico 2021년 5월 7일
If you say you deleted your code, then you may have as easily not written any code at all. How should we know that you are telling the truth?

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


Mouhamed Niasse
Mouhamed Niasse 2021년 5월 7일
try this
order=4; value=pi/4;
syms T1(x)
T1(x) = taylor(tan(x), x, 'Order', order)





Community Treasure Hunt

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

Start Hunting!

Translated by