Skip Menu |
Report information
Id: 129919
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag:
  • Bug
  • testcommitted
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Wed, 19 Oct 2016 15:44:23 -0400
To: rakudobug [...] perl.org
Subject: [BUG] asinh does not comply with IEEE
From: cpan [...] zoffix.com
Download (untitled) / with headers
text/plain 1003b
Perl IEEE[^1]: 1) asinh(-Inf) should return -Inf 2) Any too-large values that don't fit should be an Inf with the correct sign. 3) asinh(-0) gives -0 I fixed[^2] the first issue for num and Num, but not yet sure what the correct solution is for Complex. The rest of the issues are still present: <ZoffixW> m: dd asinh -1e200 <camelia> rakudo-moar 74d0e3: OUTPUT«Inf␤» # should be -Inf <ZoffixW> m: dd asinh my num $ = -0e0 <camelia> rakudo-moar 74d0e3: OUTPUT«0e0␤» # should be -0e0 <ZoffixW> m: dd asinh -0e0 <camelia> rakudo-moar 74d0e3: OUTPUT«0e0␤» # should be -0e0 <ZoffixW> m: dd asinh -1e200+1i <camelia> rakudo-moar 74d0e3: OUTPUT«<NaN+NaN\i>␤» # Not sure what it should be; WolframAlpha just gives -Inf, with no indication of the imaginary part [1] http://www.csee.umbc.edu/~tsi%E2%80%8Bmo1/CMSC455/IEEE-754-2008.pdf [2] https://github.com/rakudo/rakudo/commit/74d0e36ba27b9736b63b84c0169108a5a9a5d83e
Download (untitled) / with headers
text/plain 141b
Corrected IEEE link http://www.csee.umbc.edu/~tsimo1/CMSC455/IEEE-754-2008.pdf Relevant info are in sections 7 and 9. Try searching for asinh
Download (untitled) / with headers
text/plain 890b
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥ 🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁 TODO-fudged tests added as part of https://github.com/perl6/roast/commit/6c31fe31ab 🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁 ♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org