Skip to content
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

lgamma(-n) for n = 0, 1, 2, .. does not raise FE_DIVBYZERO. #206

Open
kargl opened this issue Mar 13, 2020 · 2 comments
Open

lgamma(-n) for n = 0, 1, 2, .. does not raise FE_DIVBYZERO. #206

kargl opened this issue Mar 13, 2020 · 2 comments

Comments

@kargl
Copy link
Contributor

kargl commented Mar 13, 2020

Tests with olibm:
lgammaf( 1) = 0. Got no exception. Expected 0 without exception.
lgammaf( 2) = 0. Got no exception. Expected 0 without exception.
lgammaf( 0) = inf. Got no exception. Expected inf with FE_DIVBYZERO.
lgammaf(-0) = inf. Got no exception. Expected inf with FE_DIVBYZERO.
lgammaf(-1) = inf. Got no exception. Expected inf with FE_DIVBYZERO.

Tests with FreeBSD libm.
lgammaf( 1) = 0. Got no exception. Expected 0 without exception.
lgammaf( 2) = 0. Got no exception. Expected 0 without exception.
lgammaf( 0) = inf. Got FE_DIVBYZERO. Expected inf with FE_DIVBYZERO.
lgammaf(-0) = inf. Got FE_DIVBYZERO. Expected inf with FE_DIVBYZERO.
lgammaf(-1) = inf. Got FE_DIVBYZERO. Expected inf with FE_DIVBYZERO.

@kargl
Copy link
Contributor Author

kargl commented Mar 13, 2020

Note, lgammal(-n) correctly raises the FE_DIVBYZERO exception. lgammaf and lgamma have issues.

@kargl kargl closed this as completed Sep 11, 2021
@oscardssmith
Copy link
Member

This hasn't yet been fixed

@oscardssmith oscardssmith reopened this May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants