Symbolic Sum of Gamma Function with Negative Integer Values
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to define a number of functions with multiple indices, one of which is used to sum factorial terms that may contain negative values. So I replaced the factorial with the gamma function, but now cannot evaluate the resulting sum due to the singularity. These terms should be zero in my functions, here is a simplified example:
syms q k
fun(q) = gamma(-2*q)
fun2(k) = symsum(k/fun(q),q,0,2)
I need this to produce a function so I can then numerically integrate it. Thanks in advance for your help.
댓글 수: 2
Walter Roberson
2013년 1월 7일
To check: when you have a factorial of a negative value, you wish the result to be 0? If so that would not be standard for factorial.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Gamma Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!