How to plot this on a graph
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
0 投票
how do u plot this between 0 and 2
syms n x
F = symsum(1/factorial(n),n,1,5)
採用された回答
Ameer Hamza
2020 年 10 月 30 日
There is no 'x' in your expression inside symsum(). I guess you are tyring to plot taylor series of exp(x). Try this
syms n x
F = symsum(x^n/factorial(n),n,0,5);
fplot(F, [0 2])
9 件のコメント
DARREN O BRIEN
2020 年 10 月 30 日
its a power series which is close to the taylor but still a little different but i was wrong its (n+1)(n+1)-(n-2)/n!
so if u can show how to plot that i would be gratefull
Ameer Hamza
2020 年 10 月 30 日
Where is 'x' in your series?
Ameer Hamza
2020 年 10 月 30 日
Can you show the mathematical form of your equations?
DARREN O BRIEN
2020 年 10 月 30 日
i was right the first time its 1/n! but the maths behind is in the picture its too long too write
Ameer Hamza
2020 年 10 月 30 日
If you just want to plot 1/n! then you will just get a straight line becuase there is no dependency on 'x'
syms n x
F = symsum(1/factorial(n),n,0,5);
fplot(F, [0 2])
DARREN O BRIEN
2020 年 10 月 30 日
if u put the numbers in 1, 1/2,1/6,1/24,1/120, 1/720. thats obviously not a straight line
Ameer Hamza
2020 年 10 月 30 日
But the original question had a reference to symsum() and x range from [0 2], so that was confusing. If you just want to plot 1/n! then you can do it like this
n = 1:5;
y = 1./factorial(n);
plot(n, y)
DARREN O BRIEN
2020 年 10 月 30 日
sorry for the confusion but in the question we are given its plot the corresponding polynomial over the range 0 ≤ x ≤ 2
Ameer Hamza
2020 年 10 月 31 日
But how do you define the polynomial from the series of 1/n!. If you look at my original answer. It does create a polynomial.
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
