Hi all
(sorry if this is a dupplicate post n my behalf, google groups did strange
stuff on my last post)
I am doing some arithmetics in a python program
# 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
And sympy insert the equations in the following equations and I get stuff
like
print Pf
a1*alpha1*(-a1*alpha1 + a2*alpha2)/RL
That is very cool and combined with lambdify, it is a tool that I have been
missing forever.
In my stdout/latex documentation, I would like to extract the initial Pf
definition (Vin-VL)*I.
Is that possible?
thanks
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.