maybe like this:

>>> # all vars
... var('I VL Vin Pf alpha1 a1 alpha2 a2 Rf' )
(I, VL, Vin, Pf, alpha1, a1, alpha2, a2, Rf)
>>> var( 'alpha R_0 T_0 c RL' )
(alpha, R_0, T_0, c, RL)
>>>
>>> # def all equations
... reps = {
... Vin : alpha2 * a2,
... VL : alpha1 * a1,
... I : VL/RL,
... Rf : (Vin - VL)/I,
... T : (Rf/R_0 -1)/c + T_0,
... Pf : (Vin-VL)*I,
... }
>>> Eq(Pf, (Vin-VL)*I)
Pf == I*(-VL + Vin)
>>> pprint(Eq(Pf, ((Vin-VL)*I).subs(reps)))
     a1*alpha1*(-a1*alpha1 + a2*alpha2)
Pf = ----------------------------------
                     RL

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to