File: Gamma-doc.m2

package info (click to toggle)
macaulay2 1.25.05%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 172,152 kB
  • sloc: cpp: 107,824; ansic: 16,193; javascript: 4,189; makefile: 3,899; lisp: 702; yacc: 604; sh: 476; xml: 177; perl: 114; lex: 65; python: 33
file content (122 lines) | stat: -rw-r--r-- 2,275 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
doc ///
  Key
    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)
  Headline
    Gamma function
  Usage
    Gamma x
    Gamma(s, x)
  Inputs
    s:RR
    x:RR
  Outputs
    :RR
  Description
    Text
      With one argument, this is the @wikipedia "gamma function"@
      \(\Gamma(x) = \int_0^\infty t^{x-1}e^{-t}\,dt\).
    Example
      Gamma 6
    Text
      With two arguments, it is the (upper)
      @wikipedia "incomplete gamma function"@
      \(\Gamma(s, x) = \int_x^\infty t^{s-1}e^{-t}\,dt\).
    Example
      Gamma(3, 7)
  SeeAlso
    regularizedGamma
    inverseRegularizedGamma
///

doc ///
  Key
    regularizedGamma
   (regularizedGamma,CC,CC)
   (regularizedGamma,CC,RR)
   (regularizedGamma,RR,CC)
   (regularizedGamma,RR,RR)
   (regularizedGamma,RR,RRi)
   (regularizedGamma,RRi,RR)
   (regularizedGamma,RRi,RRi)
  Headline
    upper regularized gamma function
  Usage
    regularizedGamma(s, x)
  Inputs
    s:RR
    x:RR
  Outputs
    :RR
  Description
    Text
      This is the (upper) regularized gamma function
      \(Q(s, x) = \frac{\Gamma(s,x)}{\Gamma(s)}\).
    Example
      regularizedGamma(3, 7)
      Gamma(3, 7) / Gamma 3
  SeeAlso
    Gamma
    inverseRegularizedGamma
///

doc ///
  Key
    inverseRegularizedGamma
   (inverseRegularizedGamma,RR,RR)
  Headline
    inverse of the upper regularized gamma function
  Usage
    inverseRegularizedGamma(s, q)
  Inputs
    s:RR
    q:RR
  Outputs
    :RR
  Description
    Text
      This is the inverse of @TO regularizedGamma@ with respect to the second
      argument.
    Example
      regularizedGamma(3, 7)
      inverseRegularizedGamma(3, oo)
  SeeAlso
    Gamma
    regularizedGamma
///

doc ///
  Key
    lngamma
    (lngamma, RR)
    (lngamma, CC)
    (lngamma, RRi)
    (lngamma, Number)
  Headline
    logarithm of the Gamma function
  Usage
    lngamma x
  Inputs
    x:RR
  Outputs
    :{RR, CC}
      the logarithm of the @TO Gamma@ function of @TT "x"@ as a real
      or complex number.
  Description
    Example
      lngamma 2.1
      lngamma(-1.1)
      lngamma(-2.1)
      lngamma (-2.000000000000000000000000000000001p120)
  SeeAlso
    Gamma
///