.Alternate to using for loop or symsum for the summation ∑(const)^n/(n*n!) ?
Ältere Kommentare anzeigen
Dear all,
Is there a more computationally efficient way compared to using for loop or symsum (from Symbolic math toolbox) to compute:
∑(const)^n/(n*n!)
const is some constant value, n is the range of limit varying from 1 to infinity (or some high value like 200 for approximating the sum).
-- Thanks, Ram.
2 Kommentare
Sean de Wolski
am 26 Jun. 2013
Bearbeitet: Sean de Wolski
am 26 Jun. 2013
Why not symsum? You're going to need it for factorial greater than 170 anyway:
factorial(171)
Ramaprasad Kulkarni
am 27 Jun. 2013
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!