필터 지우기
필터 지우기

TAYLOR METHOD OF ORDER 3 ERROR

조회 수: 2 (최근 30일)
LOKESH
LOKESH 2012년 2월 25일
I want to solve the following equation using taylor's method of order 3. The equation is F=A(y-x). Initially y=-10.058 and x=0.368. A is constant with value equal to 35.
the code is:
M=183;
h = 0.001;
A = 35;
XX(1) = -10.058;
YY(1) = 0.368;
for i=1:((M^2)/3)
F=A*(YY(i)-XX(i));
H(i)=taylor(F,3,XX);
end;
It gives me following error--->
??? Undefined function or method 'taylor' for input arguments of type 'double'.
Error in ==> tay at 19 H(i)=taylor(F,3,XX);
ANY SUGGESTION OR SOLUTION..

답변 (1개)

Walter Roberson
Walter Roberson 2012년 2월 25일
taylor() is a routine from the symbolic toolkit, and it must be provided with a symbolic expression that includes at least one variable name. Instead you are trying to call taylor() with a purely numeric value: your F is a purely numeric formula.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by