How to plot this on a graph

3 Ansichten (letzte 30 Tage)
DARREN O BRIEN
DARREN O BRIEN am 30 Okt. 2020
Kommentiert: Ameer Hamza am 31 Okt. 2020
how do u plot this between 0 and 2
syms n x
F = symsum(1/factorial(n),n,1,5)

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 30 Okt. 2020
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 Kommentare
DARREN O BRIEN
DARREN O BRIEN am 30 Okt. 2020
sorry for the confusion but in the question we are given its plot the corresponding polynomial over the range 0 ≤ x ≤ 2
Ameer Hamza
Ameer Hamza am 31 Okt. 2020
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by