Changes between Version 3 and Version 4 of Ticket #24255


Ignore:
Timestamp:
11/22/17 07:31:05 (3 years ago)
Author:
rws
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24255

    • Property Summary changed from Fix constant e coercion into SR to Fix Expression subclasses coercion into SR
  • Ticket #24255 – Description

    v3 v4  
    66sage: (x*pi).subs({x*pi:e})
    77e
     8
     9sage: s = x.series(x,2); s
     101*x + Order(x^2)
    811}}}
    912
     
    1215sage: x*pi==e
    1316e == pi*x
     17sage: x == s
     181*x + Order(x^2) == x
    1419}}}
    15 The problem is that constants are not made into expressions immediately:
     20The problem is that constants/series are subclasses of `Expression` and are not coerced/converted immediately into `Expression`:
    1621{{{
    1722sage: SR(e)
     
    2328sage: type(_)
    2429<type 'sage.symbolic.expression.Expression'>
    25 sage: x*pi==e+1-1
    26 pi*x == e
    2730}}}
    28 It seems that `e` is the only constant affected by this.