MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Sqrt[a^2 b^2]



Hallo,

in many physical calculations you have positive and real valued
variabels e.g. a and b. On the other hand there are more general
variables, i.g c and d, which can be positive and negative, but also
real valued. Now imagine the result of of a calculation, done within
Mathematica, is of the form

Sqrt[a^2 b^2 c^2 d^2].

How can I force Mathematica to write it in way every mathematician would
do it, i.e.

a b Sqrt[c^2 d^2]  ?

The same problem in disguise, is the result

Sqrt[(a + b +1)^2],

that can be simplified to

a + b +1,

because a+b+1 is always positive, assumed a and b are so.

The function PowerExpand is no solution, because it expands all powers,
also if the variable may be negative.

Klaus Boecker
e-mail: kboecker@physik.tu-muenchen.de




  • Prev by Date: Re: Assignment to submatrices
  • Next by Date: Re: algebraic solutions
  • Prev by thread: Re: Problem with MathLink !!! Help.
  • Next by thread: Re: Sqrt[a^2 b^2]