My question is exactly like the title of my post. Attached is an image with an example of what I would like to achieve.
Description of problem I have updated this file after the original post and after the problem was solved to correct a typo.
Note Vref in the picture of the description is zero.
The attempts to get the SymPy functions mentioned to work failed.
Finding the solution you are looking for is really easy. First, you find
Vxfromeq1, substitutes it intoeq2and solve it forVo:Now, if you want to transform it into the output you see on your screenshot, you have to use expression manipulation, which is pure masochism for a SymPy's novice. I'll show you how I'd do it.
In the following, you'll see several sympy's function in action. It is your job to read their documentation.
Now, I want to see the order of the arguments of the big addition:
I select the terms that I need to modify:
Then, I substitute the terms with their modified forms:
Finally, I verify that the result is equal to the original expression: