the expand() thing.
Richard B. Kreckel
kreckel at thep.physik.uni-mainz.de
Tue Sep 19 16:12:44 CEST 2000
On Mon, 18 Sep 2000, I wrote:
> Consider this:
> > expand((-1+5*x-5*x^4-10*x^2+x^5+10*x^3)*(1-4*x+x^4+6*x^2-4*x^3)*
> Out of virtual memory.
Hint: expanding the mul object successively step by step makes it fly.
Is it really a good idea to expand all children first and then do some
gymnastics with them? Or am I missing some point?
(It just comes into my mind that the issue is also of interest for some
algorithms in class matrix. It throws some new light on a number of
empirically inserted additional .expand()s which turned out to be
absolutely necessary to be efficient. I guess I can remove all these once
this is resolved.)
<Richard.Kreckel at Uni-Mainz.DE>
More information about the GiNaC-devel