1**Inf should be 1, returns NaN #87

Closed
coke opened this Issue Dec 13, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Collaborator

coke commented Dec 13, 2011

09:06 < [Coke]> niecza: say 1 ** Inf;
09:06 <+p6eval> niecza v12-20-g049fd3d: OUTPUT«NaN␤»

Causes a test failure in t/spec/S32-num/power.t

Owner

sorear commented Dec 22, 2011

As discussed on IRC, this test is dubious - 1*_Inf is a classical indeterminate form; the corresponding two-dimensional limit does not exist (consider, for instance, the limit of { (1 + 1 / $_) *_ $_ }), and in other such cases (likeInf / Inf) Perl 6 returns NaN.

sorear closed this in 529e0ac May 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment