You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
more accurate and faster lgamma, and use a more standard branch cut (#18330)
* more accurate and faster lgamma, and use a more standard branch cut for real(x)<0
* more tests
* use trick from Hare (1997) to compute log(prod of shifts) rather than sum(logs of shifts) with the correct branch cut
* even more tests
* whoops, use 1e14 and not 10^14 to avoid integer overflow on 32-bit Windows
* fix accuracy near zero at z=2
* update manual for lgamma
* news for lgamma changes
* can use a lower-degree Taylor series around z=2 because the coefficients decrease faster
* linewrap poly coefs
Copy file name to clipboardexpand all lines: doc/stdlib/math.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -1485,7 +1485,7 @@ Mathematical Functions
1485
1485
1486
1486
.. Docstring generated from Julia source
1487
1487
1488
-
Compute the logarithm of the absolute value of :func:`gamma` for :obj:`Real` ``x``\ , while for :obj:`Complex` ``x`` it computes the logarithm of ``gamma(x)``\ .
1488
+
Compute the logarithm of the absolute value of :func:`gamma` for :obj:`Real` ``x``\ , while for :obj:`Complex` ``x`` it computes the principal branch cut of the logarithm of ``gamma(x)`` (defined for negative ``real(x)`` by analytic continuation from positive ``real(x)``\ ).
0 commit comments