Summation of a Gamma series

3 ビュー (過去 30 日間)
RAM
RAM 2023 年 5 月 26 日
編集済み: Dyuman Joshi 2023 年 6 月 3 日
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 Center および File ExchangeCalculus についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by