# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #129919]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129919 >


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

Reply via email to