Opened 3 years ago

Last modified 3 years ago

#24255 new defect

Fix substitution with pattern given as equation — at Version 1

Reported by: rws Owned by:
Priority: major Milestone: sage-8.2
Component: symbolics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by rws)

There is a long-standing problem with substitution in that some substitutions do not work when given as equality but do work when given as dictionary.

sage: (x*pi).subs(x*pi==e)
sage: (x*pi).subs({x*pi:e})

It looks like that in some cases the conversion to dict switches lhs and rhs of the equation and this is because of such behaviour:

sage: x*pi==e
e == pi*x

This should really be fixed.

Change History (1)

comment:1 Changed 3 years ago by rws

  • Description modified (diff)
Note: See TracTickets for help on using tickets.