Borrar filtros
Borrar filtros

Error using taylor to find Maclaurin polynomials

2 visualizaciones (últimos 30 días)
Samious
Samious el 23 de Mayo de 2014
Comentada: Samious el 24 de Mayo de 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

Respuesta aceptada

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

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by