Hello,

I need to be able to evaluate an expression, where the expression is
composed of dynamically generated variables. For example, I might have
a list "var_list", a list "data_list", and an expression "exprssn".
Here
1) var_list is a list of variables, where every element in var_list
was created using sage.calculus.calculus.var
2) data_list is a list of real numbers
3) exprssn is an expression, where every variable comes from var_list

How would I evaluate exprssn when the variable var_list[i] takes the
value data_list[i]? If I try something like exprssn(var_list[i] =
data_list[i]) I get an error.

My current solution involves string generation coupled with eval
statements and is horribly clunky. What is the right way to do this?

Thanks,
Eric

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to