Fix for bug [ 1370433 ] trigsimp(sqrt(%i2)) !=sqrt(trigsimp(%i2))?



On Fri, 10 Nov 2006, Jaime E. Villate wrote:
> On Thu, 2006-11-09, Raymond Toy wrote:
> > Doesn't sqrt(x) mean the principal square root?
> That was what I thought too. When Maxima gives me the results:
> 
> (%i2) sqrt(x^2);
> (%o2) abs(x)
But this is wrong! maxima should stop doing this. For example, for
x = 1 + %i
with the standard cut along the negative real half-axis,
sqrt(x^2) = 1 + %i = x
but
abs(x) = sqrt(2)

Andrey