Skip to content

BigFloat::log infinite loop? #31

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

Open
mtak- opened this issue Jul 15, 2024 · 2 comments
Open

BigFloat::log infinite loop? #31

mtak- opened this issue Jul 15, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mtak-
Copy link

mtak- commented Jul 15, 2024

When BigFloat::log should give 0.5 or 2.0, it infinite loops (or at least seems to). Precision and rounding mode seem unimportant, but I have been testing with precisions of 64,2048,4096 and RoundingModes of ToZero/ToEven.

Here's some code that does not seem to terminate.

let a = BigFloat::from_str("9.0").unwrap();
let b = BigFloat::from_str("3.0").unwrap();
a.log(&b, 64, RoundingMode::ToEven, &mut Consts::new().unwrap());
@stencillogic stencillogic added the bug Something isn't working label Jul 15, 2024
@stencillogic stencillogic self-assigned this Jul 15, 2024
@stencillogic
Copy link
Owner

Thank you for raising the issue. FYI: with rounding mode None bug will not appear.

@stencillogic
Copy link
Owner

stencillogic commented Jul 18, 2024

So, this requires new functionality. I created a task for it: #32
Whoever wish to work on it: welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants