Changes between Version 12 and Version 13 of Ticket #24428
- Timestamp:
- Feb 20, 2018, 8:39:33 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24428
-
Property
Summary
changed from
Substitution should be the same as numerical evaluation
toNumerical evaluation should return a complex number if applicable
-
Property
Summary
changed from
-
Ticket #24428 – Description
v12 v13 1 It is very surprising that these do not give the same result:1 This looks wrong: 2 2 {{{ 3 3 sage: arccosh(0.9) 4 4 NaN 5 5 }}} 6 and 6 7 Especially given all the following: 8 {{{ 9 sage: arccosh(RDF(0.9)) 10 0.45102681179626236*I 11 }}} 12 7 13 {{{ 8 14 sage: arccosh(x).subs(x=0.9) … … 10 16 }}} 11 17 12 The second result is more useful, so the first should probably return a complex number too. 18 {{{ 19 sage: sqrt(-2.0) 20 1.41421356237310*I 21 }}} 13 22 14 See also 15 {{{ 16 sage: arccosh(RDF(0.9)) 17 0.45102681179626236*I 18 }}} 23 A complex number is more useful than a `NaN` so we shouldn't return `NaN` in the first example.