Summation of a Gamma series
3 views (last 30 days)
Show older comments
I want to plot(x,y) of a function which consists of a gamma function inside a summation.
How do i do that ?
0 Comments
Accepted Answer
Dyuman Joshi
on 26 May 2023
Edited: Dyuman Joshi
on 3 Jun 2023
This requires Symbolic toolbox -
%Defining symbolic variables
syms x n
%summation using symsum()
out = symsum(ExpressionToBeSummed, n, 0, Inf)
You will obtain the sum in terms of the Hypergeometric function - hypergeom
%define final expression
y = 2*exp(-x^2)*out/sqrt(sym(pi))
0 Comments
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!