Non-sequential substitution in SymPy
问题 I'm trying to use [SymPy][1] to substitute multiple terms in an expression at the same time. I tried the [subs function][2] with a dictionary as parameter, but found out that it substitutes sequentially. In : a.subs({a:b, b:c}) Out: c The problem is the first substitution resulted in a term that can be substituted by the second substitution, but it should not (for my cause). Any idea on how to perform the substitutions simultaneously, without them interfering with each other? Edit: This is a