Changes between Version 19 and Version 20 of Ticket #16587
 Timestamp:
 07/06/15 15:07:15 (6 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #16587

Property
Summary
changed from
f(expr).n() fails for all generalized functions
tof(expr,hold).n() fails for all generalized functions

Property
Summary
changed from

Ticket #16587 – Description
v19 v20 1 As reported in http://ask.sagemath.org/question/8535/problemwithsignsgnandn/ by Louis Cypher: 1 {{{ 2 sage: M = sgn((3/2),hold=True); M.n() 3 ... 4 TypeError: cannot evaluate symbolic expression numerically 5 sage: polylog(2.,.9).n() 6 ... 7 TypeError: cannot evaluate symbolic expression numerically 8 9 }}} 10 The original problem is now resolved, it was reported in http://ask.sagemath.org/question/8535/problemwithsignsgnandn/ by Louis Cypher: 2 11 {{{ 3 12 sage: M = sgn(cos(3/2)) … … 14 23 15 24 Problem seems to be that in `M.n??` we see that it's looking for `is_a_numeric(x._gobj)` but apparently that fails, as does the constant, so it thinks we are looking at evaluating `sgn(cos(x))` instead of `sgn(cos(3/2))`. 16 17 UPDATE:18 The problem also appears with `polylog(2.,.9).n()` for example.