www.delorie.com/gnu/docs/calc/calc_82.html   search  
 
Buy the book!


GNU Emacs Calc 2.02 Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.7.48 Algebra Tutorial Exercise 1

The result `sqrt(x)^2' is simplified back to x by the Calculator, but `sqrt(x^2)' is not. (Consider what happens if x = -4.) If x is real, this formula could be simplified to `abs(x)', but for general complex arguments even that is not safe. (See section 7.6 Declarations, for a way to tell Calc that x is known to be real.)


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003