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

Fix error in Power#e2ApfloatArg() method numerical high precision evaluation #207

Closed
axkr opened this issue Dec 9, 2020 · 2 comments
Closed

Comments

@axkr
Copy link
Owner

axkr commented Dec 9, 2020

Fix error in Power#e2ApfloatArg() method numerical high precision evaluation

ArithmeticException: "Power of negative number; result would be complex" is thrown

See: #206

axkr added a commit that referenced this issue Dec 9, 2020
- Fix error in Power#e2ApfloatArg() method numerical high precision
evaluation
- #206
@tranleduy2000
Copy link
Sponsor Collaborator

Using this implementation will reduce the accuracy of apfloat number.
Example:

N[((2)/(3))*(4-3*Sqrt(2)), 100]

Old version: -0.161760458079523430936710781752729490472677084087229479686692809...
Wolfram:     -0.161760458079523430936710781752729490472677084087229479686692809...

New version: -0.161760458079523192529178585472335853284324913396796799718432944...
                               ^

@axkr
Copy link
Owner Author

axkr commented Dec 12, 2020

tranleduy2000 added a commit to tranleduy2000/symja_android_library that referenced this issue Dec 14, 2020
@axkr axkr closed this as completed Sep 18, 2021
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