how to perform symbolic factorial ?
Ältere Kommentare anzeigen
I am trying to generate symbolic sums that represent, say, taylor series of some function. This series includes a factorial term but I have been unable to implement it. I may have something like: syms x n f=1/(1-x^4) f2=symsum((1/factorial(n))*f^(n),n,0,10) where f^(n) is the "nth" derivative of f. "factorial(n)" is a placeholder to illustrate what I am trying to accomplish. Any advice would be greatly appreciated. By the way, I am aware of the "Taylor" function. The above example was used to point out my problem area.
Akzeptierte Antwort
Weitere Antworten (1)
Andrew Newell
am 7 Mär. 2011
You can use
gamma(n+1)
to get n factorial. Gamma is a generalization of factorial to real numbers.
(edited to apply Walter's correction)
4 Kommentare
Walter Roberson
am 7 Mär. 2011
Small correction: gamma(n+1)
Andrew Newell
am 8 Mär. 2011
Thanks, @Walter.
Frank DiJoseph
am 10 Mär. 2011
Frank DiJoseph
am 10 Mär. 2011
Kategorien
Mehr zu Special Values finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!