Floating point numbers will automatically combine without the use if
simplify. If you want an indexed object, look at Indexed
http://docs.sympy.org/latest/modules/tensor/indexed.html<http://docs.sympy.org/0.7.3/modules/tensor/indexed.html?highlight=indexed>
.

Aaron Meurer

On Sep 5, 2013, at 8:09 AM, david <[email protected]> wrote:

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.

Reply via email to