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

System complex functions not detected/used on Fedora 21. #5511

Closed
charris opened this issue Jan 27, 2015 · 4 comments
Closed

System complex functions not detected/used on Fedora 21. #5511

charris opened this issue Jan 27, 2015 · 4 comments
Labels
00 - Bug 57 - Close? Issues which may be closable unless discussion continued component: build

Comments

@charris
Copy link
Member

charris commented Jan 27, 2015

Current state on Fedora 21.

In [2]: np.tanh(372+1j)
Out[2]: (nan+nan*j)

Looks like library function is not used. gcc 4.9.2 gives 1.000000000000000000+0.000000000000000000i, where denormals look to be flushed to zero, probably a side affect of how the function compiles. The code for that is

#include <stdio.h>
#include <math.h>
#include <complex.h>

int main(int argc, char **args)
{
    double complex z = 372.0 + 1.0 * I;
    double complex res = ctanh(z);

    printf("%20.18f%+20.18fi\n", creal(res), cimag(res));
}
@charris
Copy link
Member Author

charris commented Jan 28, 2015

A lot of functions in complex.h are not looked for.

@mattip
Copy link
Member

mattip commented Jan 21, 2019

Is this still an issue?

@mattip mattip added 00 - Bug 57 - Close? Issues which may be closable unless discussion continued component: build labels Jan 21, 2019
@charris
Copy link
Member Author

charris commented Jan 21, 2019

Looks to be fixed on my system, fedora 29, gcc 8.2. So the functions are at least looked for and the example produces

In [1]: np.tanh(372+1j)
Out[1]: (1+1.5e-323j)

@mattip
Copy link
Member

mattip commented Jan 21, 2019

ok, closing then.

@mattip mattip closed this as completed Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 57 - Close? Issues which may be closable unless discussion continued component: build
Projects
None yet
Development

No branches or pull requests

2 participants