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 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