How to make results more compact




> > The following should do steps 1, 2,3 the rest by hand.
> 
> You can use "optimize" for the rest:
> 
> optimize ( c*(f*(i+h+g)+e*(i+h+g)+d*(i+h+g))+b*(f*(i+h+g)+
> e*(i+h+g)+d*(i+h+g))+a*(f*(i+h+g)+e*(i+h+g)+d*(i+h+g)) ) =>
> 
>            block([%1,%2],
>                 %1:i+h+g,
>                 %2:f*%1+e*%1+d*%1,
>                 c*%2+b*%2+a*%2)
> 
> Note that optimize does *not* find subexpressions like a+b in a+b+c.

Obviously I'm a bit stubborn, but in my mind optimized should give:
            block([%1,%2],
                 %1:i+h+g,
                 %2:%1*(f+e+d),
                 %2*(c+b+a)

I know, it's all very well to say that but it's surely hard to code it.

Thank you very much for your help!
Gerhard


This electronic transmission (and any attachments thereto) is intended
solely for the use of the addressee(s). It may contain confidential or
legally privileged information. If you are not the intended recipient of
this message, you must delete it immediately and notify the sender.  
Any unauthorized use or disclosure of this message is strictly prohibited.
Faurecia does not guarantee the integrity of this transmission and shall
therefore never be liable if the message is altered or falsified nor for any
virus, interception or damage to your system.