Effacer les filtres
Effacer les filtres

how do you use the built taylor function, can some one give an example

2 vues (au cours des 30 derniers jours)
libin danial
libin danial le 23 Juil 2012
how do you use the built taylor function, can some one give an example

Réponse acceptée

James Tursa
James Tursa le 23 Juil 2012
Modifié(e) : James Tursa le 23 Juil 2012
From the documentation:
syms x
taylor(exp(x))
taylor(sin(x))
taylor(cos(x))
ans =
x^5/120 + x^4/24 + x^3/6 + x^2/2 + x + 1
ans =
x^5/120 - x^3/6 + x
ans =
x^4/24 - x^2/2 + 1
Note that this requires the symbolic math toolbox.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by