Is there a reason not to use Symbols? From your explanations I do not see one. If your issue is how to couple the result to something like numpy, checkout `lambdify`.
On 5 September 2013 15:54, david <[email protected]> wrote: > For better explanation I have done the simplification in MatCad where > unassigned variables are seen as symbols in sympy. > > > <https://lh4.googleusercontent.com/-uq82CF7JYZw/UijhDNbjPvI/AAAAAAAAAAM/bPAnd8PQSpI/s1600/simplify+with++arrays.tiff> > > > Am Donnerstag, 5. September 2013 15:19:14 UTC+2 schrieb david: > >> I have explored the sympy features and i was very impressed with both the >> amount of features and the ease of testing with the doc and the coupled >> Live Shell. >> I want to write a programm that simplifies expressions as much as >> possible to minimize calculation time because they will later be numericaly >> evaluated very often. >> The most features I need work very well. But with arrays I have a problem. >> I need to define an array object as an symbol, so that the following is >> possible: >> >> simplify(2.0*2.0*t[0]) >> is simplified to: >> 4.0*t[0] >> >> and: >> idx = 2 >> simplify(2.0*2.0*t[idx]) >> shold be simplified to: >> 4.0*t[2] >> >> Is there any way to do this? >> >> david >> > -- > 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. > -- 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.
