フィルターのクリア

Write a program in a script file that determines ex by using the Taylor series representation.

7 ビュー (過去 30 日間)
John Doe
John Doe 2021 年 10 月 22 日
コメント済み: Rik 2021 年 10 月 22 日
The function f(x) = ex can be represented in a Taylor series by: ex = n = 0 xnn! Write a program in a script file that determines ex by using the Taylor series representation. The prof=gram calculates ex by adding terms of the series and stopping when the absolute value of the term that was added last is smaller than 0.0001. Use a while-end loop, but limit the number of passes to 30. If in 30th pass the value of the term that is added is not smaller than 0.0001, the program stops and displays a message that more than 30 terms are needed. Use the program to calculate e2, e-4, and e21.
I don't understand well this question, can someone help me.
  1 件のコメント
Rik
Rik 2021 年 10 月 22 日
Some of the mathematical symbols are missing from your post.
You should do this step by step.
What is the input to your function?
If you write the steps of your program on paper (e.g. in a flow chart), what would that look like?

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by