8000 gh-101678: refactor the math module to use special functions from c11 by skirpichev · Pull Request #101679 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-101678: refactor the math module to use special functions from c11 #101679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Comment on custom implementations of tgamma/lgamma
  • Loading branch information
skirpichev committed Feb 8, 2023
commit 5b75ef88c3d6788ef76ab8ca895de964c80d02f1
4 changes: 3 additions & 1 deletion Modules/mathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ m_sinpi(double x)
return copysign(1.0, x)*r;
}

/* Implementation of the real gamma function. In extensive but non-exhaustive
/* Implementation of the real gamma function. Kept here to workaround
issues (see e.g. #70309) with quality of libm's tgamma/lgamma implementations
on various platforms (Windows, MacOS). In extensive but non-exhaustive
random tests, this function proved accurate to within <= 10 ulps across the
entire float domain. Note that accuracy may depend on the quality of the
system math functions, the pow function in particular. Special cases
Expand Down
0