Hi all

I am doing some simple arithmetics in sympy 

    # all vars
    var('I VL Vin Pf alpha1 a1 alpha2 a2' )
    var( 'alpha R_0 T_0 c RL' )
    
    # def all equations
    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
    
This is very cool and sympy automatically inserts the relevant definitions 
and e.g I get
print Pf
a1*alpha1*(-a1*alpha1 + a2*alpha2)/RL

Is there a way for me to find out that I was actually defining Pf as 
(Vin-VL)*I?

This is relevant since I would like to make a text/latex dump of the base 
equations I am using, some of the steps, and the end result.


regards
moozer



-- 
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