Subject: | Possible infinite loop inside Math::BigFloat->batan2() |
Given the following code:
===BEGIN===
use Math::BigFloat (lib => 'GMP');
my $x = Math::BigFloat->new('0.08628308027');
my $y = Math::BigFloat->new('0.008726535033');
CORE::say $x->batan2($y);
===END===
On my computer, with Math::BigInt::GMP installed, after two minutes, the code is still running. My guess is that it got stuck into an infinite loop, or the function is just too slow to finish in a reasonable amount of time. I'm not really sure which one is the case.