for what it is worth
(1) rearranging expressions does not guaranteed that they
will evaluate to the same values, given floating-point data.
(2) this ad hoc searching for common subexpressions is
not going to extract the best way of evaluating (say)
polynomials that can be factored, or can be evaluated
by some divide-and-conquer halving.  Or matrix
expressions with fast operations. Or FFT-related speedups.

The biggest payoffs traditionally in compiler technology
(look this stuff up if you don't know it) is in moving
expression evaluation outside of loops, or even improving
the evaluation of the loop index.

RJF

On Tuesday, April 4, 2017 at 1:48:22 PM UTC-7, Pfaeff wrote:
>
> It seems that this only happens when the symbol is a matrix element. It 
> will then sometimes (not always) get assigned another alias.
>

-- 
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/224d3777-d100-4ee9-80bc-6b23d1ae25be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to