Summation of a Gamma series

3 次查看(过去 30 天)
I want to plot(x,y) of a function which consists of a gamma function inside a summation.
How do i do that ?

采纳的回答

Dyuman Joshi
Dyuman Joshi 2023-5-26
编辑:Dyuman Joshi 2023-6-3
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))
Use fplot to plot the function y(x)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by