-
-
Couldn't load subscription status.
- Fork 683
Open
Description
This looks wrong:
sage: arccosh(0.9)
NaN
Especially given all the following:
sage: arccosh(RDF(0.9))
0.45102681179626236*I
sage: arccosh(x).subs(x=0.9)
0.451026811796262*I
sage: sqrt(-2.0)
1.41421356237310*I
A complex number is more useful than a NaN so we shouldn't return NaN in the first example.
The Function code first calls x.arccosh() which returns the NaN. The reason for only the RDF case working is that RDF does not have a arccosh member function so the computation is delegated to Pynac where the complex value is returned.
Depends on #24832
Dependencies: #24832, pynac-0.7.17
Component: symbolics
Author: Ralf Stephan
Branch/Commit: u/rws/24428 @ aa041a9
Issue created by migration from https://trac.sagemath.org/ticket/24428