Skip to content

Commit c400278

Browse files
authored
Fix gamma docstring (#471)
1 parent 124915f commit c400278

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/gamma.jl

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ Compute the gamma function for complex ``z``, defined by
558558
and by analytic continuation in the whole complex plane.
559559
560560
# Examples
561-
Special Values:
561+
562562
```jldoctest
563563
julia> gamma(0)
564564
Inf
@@ -568,26 +568,11 @@ julia> gamma(1)
568568
569569
julia> gamma(2)
570570
1.0
571-
```
572-
573-
``\Gamma(0.5)^2 = \pi``
574-
```jldoctest
575-
julia> gamma(0.5)^2
576-
3.1415926535897936
577571
578572
julia> gamma(0.5)^2 ≈ π
579573
true
580-
```
581-
582-
For integer `n`: ``\Gamma(n+1) = prod(1:n) = factorial(n)``
583-
```jldoctest
584-
julia> gamma(4+1)
585-
24.0
586-
587-
julia> prod(1:4) # == 1*2*3*4
588-
24
589574
590-
julia> gamma(4+1) == prod(1:4) == factorial(4)
575+
julia> gamma(4 + 1) == prod(1:4) == factorial(4)
591576
true
592577
```
593578

0 commit comments

Comments
 (0)