Zulip Chat Archive

Stream: Is there code for X?

Topic: partialGamma when arguments are real


Josha Dekker (Jan 03 2024 at 09:54):

We have

def partialGamma (s : ) (X : ) :  :=
   x in (0)..X, (-x).exp * x ^ (s - 1)

I'm interested in the case where sR, s0s \in \mathbb{R},~s \geq 0, in which case partialGamma maps into R\mathbb{R}. Is there something like a Real.partialGamma that takes care of this? I couldn't find it in the docs.
I'm effectively interested in showing that the CDF of a Gamma distribution equals a constant multiplied by a partialGamma evaluated at some choice of s and X. I'm just curious whether there is something useful out there, or whether I should just program this by hand?

Kevin Buzzard (Jan 03 2024 at 09:56):

You can just take the real part

Josha Dekker (Jan 03 2024 at 09:57):

Thank you!

Kevin Buzzard (Jan 03 2024 at 10:00):

This is a standard trick, see e.g. docs#Real.cos

Josha Dekker (Jan 03 2024 at 10:04):

Thank you!


Last updated: May 02 2025 at 03:31 UTC