You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
arsinh and arcsch of a small argument keep only some of their digits #2686
On master (0b1b7d7), arsinh and arcsch keep only some of the 100 working digits for a small argument, and how many depends on the exponent. Digits counted against mpmath at 400 digits:
For example, arsinh(10^(-60)) gives 9.999999999999999999999999999999999999999999999999999999999995E-61. The true value is 1E-60 - 1.6667E-181, so the result is off by x^2/2. That is what ln(x + sqrt(x^2 + 1)) gives when sqrt(1 + x^2) rounds to 1 and the logarithm then subtracts x^2/2. That is unconfirmed: it does not explain why 10^(-30) and 10^(-35) come out right.
arcsin(10^(-20)), artanh(10^(-20)) and ln(1 + 10^(-20)) are right. These values are the same on abd100a, before #2684.
Found while checking #2684's probe against mpmath.
Activity