square root expression simplification



-----maxima-bounces at math.utexas.edu wrote: -----

>I?suspect?that?one?problem?with?these?simplification?corrections?is?that
>sqrt(1/z)??-->?1/sqrt(z)???unless?z?is?real?and?negative
>can?be?very?expensive?when?z?is?not?a?literal?symbol.

Example: Csign is called 16 times--think what happens when a,b,c,d are large expressions.

 (%i1) (untimer(), timer(csign))$

 (%i2) assume(d > 0, c < 0)$

 (%i3) e : sqrt(a*b*sqrt(c*d))$

 (%i4) timer_info();
 (%o4) matrix([function,time//call,calls,runtime,gctime],[csign,0,16,0,0],[total,0,16,0,0])


--Barton