Error using taylor to find Maclaurin polynomials

조회 수: 2 (최근 30일)
Samious
Samious 2014년 5월 23일
댓글: Samious 2014년 5월 24일
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

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by