block([radexpand:all], sqrt(x^2) ) => sqrt(x^2), should be x per doc
block([radexpand:true,domain:'real], sqrt(x^2) ) => sqrt(x^2), should be abs(x) per doc
Tested in Maxima 5.27.0 2012-04-30 11:59:06 i686-apple-darwin11.3.0 SBCL 22.214.171.124-abb03f9
Maxima version too old? I get this with the current sources (and cmucl):
block([radexpand:all], sqrt(x^2) ) => x
block([radexpand:true,domain:'real], sqrt(x^2) ) => abs(x)
I think that the documentation is currently just wrong. It says:
(c) If RADEXPAND is FALSE, or RADEXPAND is TRUE and DOMAIN is COMPLEX, SQRT(X^2) will be returned.
Maxima 5.29.1 http://maxima.sourceforge.net
using Lisp ECL 12.12.1
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
So in no case do we seem to get sqrt(x^2) returned. Well, we get it in the case we don't use radcan!
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.