Error using taylor to find Maclaurin polynomials

2 vues (au cours des 30 derniers jours)
Samious
Samious le 23 Mai 2014
Commenté : Samious le 24 Mai 2014
Hi I have some problem with using the taylor function, this is what I did
syms x f=exp(x^2); taylor(f,5,0)
I'm want to find the fourth degree of Maclaurin polynomials with a=0
but I received this error
****************************************************
Error using sym/taylor (line 104)
Argument 'x' failed validation
@(x)isa(x,'sym')||(ischar(x)&&~any(strcmpi(x,{'Order','ExpansionPoint','OrderMode','Absolute','Relative'}))).
Error in question3 (line 5)
taylor(f,5,0)
****************************************************
The line 104 does not exist in my matlab equation

Réponse acceptée

Mischa Kim
Mischa Kim le 23 Mai 2014
Samious, how about
syms x
f = exp(x^2);
ts = taylor(f, x, 0, 'Order', 5)

Plus de réponses (0)

Catégories

En savoir plus sur Polynomials dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by