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

complex asin, acos cannot calculate for |n| > 1 where n is complex #58

Closed
mattsignorelli opened this issue Dec 30, 2023 · 2 comments
Closed

Comments

@mattsignorelli
Copy link
Contributor

mattsignorelli commented Dec 30, 2023

The following gives an error

d = Descriptor(1,5)
t = ComplexTPS(d)
t[0] = 0.9+0.9im
asin(t)

error: /workspace/srcdir/gtpsa/code/mad_tpsa_fun.c:740: : invalid domain asin(+9.0000E-01+9.0000E-01i)

whereas with regular scalars in Julia

julia> asin(0.9+0.9im)
0.6415282485478062 + 0.9659563609033214im
@DavidSagan
Copy link
Member

Looks like a bug in the C code which you should report.

@mattsignorelli
Copy link
Contributor Author

This is fixed in mattsignorelli/gtpsa@0a4d846

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