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
558
558
and by analytic continuation in the whole complex plane.
559
559
560
560
# Examples
561
- Special Values:
561
+
562
562
```jldoctest
563
563
julia> gamma(0)
564
564
Inf
@@ -568,26 +568,11 @@ julia> gamma(1)
568
568
569
569
julia> gamma(2)
570
570
1.0
571
- ```
572
-
573
- ``\G amma(0.5)^2 = \p i``
574
- ```jldoctest
575
- julia> gamma(0.5)^2
576
- 3.1415926535897936
577
571
578
572
julia> gamma(0.5)^2 ≈ π
579
573
true
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
589
574
590
- julia> gamma(4+ 1) == prod(1:4) == factorial(4)
575
+ julia> gamma(4 + 1) == prod(1:4) == factorial(4)
591
576
true
592
577
```
593
578
You can’t perform that action at this time.
0 commit comments