How to do a taylor series in matlab with e?

5 ビュー (過去 30 日間)
Bella
Bella 2016 年 5 月 25 日
編集済み: Todd Leonhardt 2016 年 5 月 25 日
if the equation was g(x)=e^x/(cos(x)+tan3(x)) for x=2 I tried >> x=2;taylor(exp(e^x/(cos(x)+tan3(x)))) but an error comes up with undefined function or variable 'e'

回答 (1 件)

Todd Leonhardt
Todd Leonhardt 2016 年 5 月 25 日
編集済み: Todd Leonhardt 2016 年 5 月 25 日
Check out this example of how to compute Taylor series in Matlab:
Make sure you define x as a symbolic variable first.
  2 件のコメント
Bella
Bella 2016 年 5 月 25 日
now it says undefined function 'taylor'
Todd Leonhardt
Todd Leonhardt 2016 年 5 月 25 日
taylor operates symbolically
You need to give it the variable.
Do you have the symbolic math toolbox?

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by