[Date Index] [Thread Index] [Author Index]
Re: How to get sqrt(Year^2)===Year?
On 5/9/07 at 4:33 AM, abbot at AugiaDives.hre (Hatto von Aquitanien) wrote: >If I have some expression which takes the square root of a square, >it evaluates leaving the whole square root expression unchanged. >Year == (Year^2)^(1/2) >just returns what I entered when evaluated. The reason this occurs is will not evaluate to True for all possible values of the variable Year. For example, consider what happens if Year = -1. The right hand side evaluates to 1 which is clearly not what you started with. However, you can use the Mathematica PowerExapnd to cause (Year^2)^(1/2) to evaluate to Year, i.e. In:= Year == (Year^2)^(1/2) // PowerExpand Out= True Just be aware this transformation will not be valid in general. -- To reply via email subtract one hundred and four