Taylor series input arguments error

1 回表示 (過去 30 日間)
Katherine Edwards
Katherine Edwards 2020 年 6 月 22 日
回答済み: Raunak Gupta 2020 年 6 月 24 日
When I try to calculate a Taylor series specifying the Expansion Point and Order eg.
syms x
T = taylor(sin(x), x, 'ExpansionPoint' , pi/4, 'Order' ,5)
I receive the error message
Error using sym/taylor
Too many input arguments
(I'm using MATLAB r2018b if it helps)
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 6 月 22 日
What shows up for
which -all taylor

サインインしてコメントする。

回答 (1 件)

Raunak Gupta
Raunak Gupta 2020 年 6 月 24 日
Hi,
As Walter mentioned in the comments the issue would be that you may have defined a local variable named ‘taylor’ which is overriding the inbuilt function taylor from Symbolic Math Toolbox. You can remove or change the variable name which are named taylor form the code before using taylor function. You can use
clear taylor
At the beginning of the code. I have explicity run the code mentioned in question without anything else and it runs fine.

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by