Hi all. 
I am working on optimization, and I want to code a functions where I can 
sub() larger number of variables. 
for this, I generated a m functions with n variables. For example, let say 
3 functions and 2 variables.

num_var=2
x=symbols('x0:num_var')

I generated this functions:
f=[5*x0 + 4*x1 + 6, -4*x0 - 5*x1 - 6, -8*x0 - 10]

and I have a point like:
point=[-2.8,1.74]

If I want to sub() in each function, what is the fastest way to do this?
f[0].subs([(x[0],point[0]),(x[1],point[1])])

(this will give evaluation of first function in point)


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to