File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ Compute the gamma function for complex ``z``, defined by
558558and by analytic continuation in the whole complex plane.
559559
560560# Examples
561- Special Values:
561+
562562```jldoctest
563563julia> gamma(0)
564564Inf
@@ -568,26 +568,11 @@ julia> gamma(1)
568568
569569julia> gamma(2)
5705701.0
571- ```
572-
573- ``\G amma(0.5)^2 = \p i``
574- ```jldoctest
575- julia> gamma(0.5)^2
576- 3.1415926535897936
577571
578572julia> gamma(0.5)^2 ≈ π
579573true
580- ```
581-
582- For integer `n`: ``\G amma(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)
591576true
592577```
593578
You can’t perform that action at this time.
0 commit comments