Macaulay2 » Documentation
Packages » Macaulay2Doc » analytic functions » Gamma
next | previous | forward | backward | up | index | toc

Gamma -- Gamma function

Description

With one argument, this is the gamma function \(\Gamma(x) = \int_0^\infty t^{x-1}e^{-t}\,dt\).

i1 : Gamma 6

o1 = 120

o1 : RR (of precision 53)

With two arguments, it is the (upper) incomplete gamma function \(\Gamma(s, x) = \int_x^\infty t^{s-1}e^{-t}\,dt\).

i2 : Gamma(3, 7)

o2 = .05927232776104355

o2 : RR (of precision 53)

See also

Ways to use Gamma:

  • Gamma(CC)
  • Gamma(CC,CC)
  • Gamma(CC,RR)
  • Gamma(RR)
  • Gamma(RR,CC)
  • Gamma(RR,RR)
  • Gamma(RR,RRi)
  • Gamma(RRi)
  • Gamma(RRi,RR)
  • Gamma(RRi,RRi)

For the programmer

The object Gamma is a method function.


The source of this document is in Macaulay2Doc/functions/Gamma-doc.m2:40:0.