I've run into the following problem: I have some function, let's say, e.g.
f = (x + y)/(y + a/b), and I'd like to substitute "a/b" with "k". I would use "f.subs(a/b, k)", however, this does not work as f seems to be internally represented as: f = b(x + y)/(by + a), so sympy seems not to be able to find "a/b". You can check this by looking at the nominator and denominator of the original f using as_numer_denom(), its (b(x + y), by + a). Is there a way to "force" the first / original representation, i.e., with the fraction in the denominator intact? -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/jjc4EjDJM08J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
