I am trying to use asinh function from math module in Ironpython 2.7. Anytime I have a float < -1, I get nan as a result. I know that in cmath they are some branch cuts due to the potential use of complex numbers, but here I work with reals and the documentation explains that math is the appropriate module.
asinh(-.5)
asinh(-1.)
asinh(-1.001)
>>-0.481211
>>-0.881373
>>nan
Am I missing something ? This is working fine with all other flavours of Python I use.
Is it necessary to write a custom function using the log(x+sqrt(x**2+1) definition ? I really wonder what is going on here so I would be very grateful for any thorough answer on this.