How do I properly code a Taylor Series for tan(x)?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
John D'Errico
il 7 Mag 2021
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?
Risposte (1)
Mouhamed Niasse
il 7 Mag 2021
try this
order=4; value=pi/4;
syms T1(x)
T1(x) = taylor(tan(x), x, 'Order', order)
vpa(T1(value))
0 Commenti
Vedere anche
Categorie
Scopri di più su Number Theory in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!