powers



Am Sonntag, den 02.10.2011, 16:47 -0700 schrieb Raymond Toy:
> On 10/2/11 2:22 AM, Pere Castellv? wrote:
> > Hi all,
> >
> > is there a way to obtain 40*sqrt(2) in this computation?
> >
> > (%i3) 20*sqrt(2)+20*sqrt(2);
> > (%o3) 5*2^(7/2)
> >
> Hmm.  It seems that you can't.  Even 40*sqrt(2) is simplified to 5*2^(7/2).
> 
> I think this is due to some work done a while a go to fix some other
> issues where maxima was not simplifying expressions like this, so maxima
> now factors the numbers and puts the factors into the square root.

Yes, products with roots and integers are consistently simplified. This
might be not the prefered representation, but it allows much better
simplification of complex expressions.

See e.g. the different answers we had in Maxima 5.15. In Maxima 5.25 all
expressions simplifies to the same result.

Maxima version: 5.15.0
Maxima build date: 19:15 4/3/2011
host type: i686-pc-linux-gnu
lisp-implementation-type: SBCL
lisp-implementation-version: 1.0.45

(%i2) 20*sqrt(2)+20*sqrt(2);
(%o2) 40*sqrt(2)

(%i3) sqrt(2)*20+sqrt(2)*20;
(%o3) 10*2^(5/2)

(%i4) 40*sqrt(2);
(%o4) 40*sqrt(2)

(%i5) sqrt(2)*40;
(%o5) 5*2^(7/2)

(%i6) 20*sqrt(2)+sqrt(2)*20;
(%o6) 5*2^(5/2)+20*sqrt(2)

Dieter Kaiser