What is the latest status of this ? In particular, is there any possibility to enforce the correct behavior by passing some options to Maxima ? (I've noticed that maxima_calculus.eval('radexpand:true') does not help).
Thanks for your explanation. So it is clear that radcan ignore assumptions.
As already mentioned by kcrisman, radcan does not take into account the option variable radexpand, which, if set to 'true' (and domain to 'real'), would do the job, as suggested in the documentation
http://maxima.sourceforge.net/docs/manual/en/maxima_9.html
Prof. Richard Fateman, since it seems that you are the primary author of radcan (am I correct ?), would it require a lot of work to make a new version of radcan (with a new name, in order not to alter the current one), so that it takes radexpand into account ?
Yes, I wrote radcan. The full source of it is available. I think it is in file rat3e.lisp. Look for
(defun $radcan
or perhaps (defmfun $radcan
I think that if you wish to modify it to make a function with another name, you will first
have to specify what that function should do. It can then be read in to the maxima
image. (you can presumably prod maxima to do so by having it execute
"load("yourfilename.lisp") " from Sage).
Radcan was written sometime before 1971. Other people have thought about
what might be "better" for 40+ years. If you come up with a truly 100%
satisfactory replacement, more power to you. ")
RJF
. It is not optimal but it works:
What you've written is just a hack.
Your statement then translates to RPBSRPN(x^2) = abs(x) .
But then if it ir R+-->R+, the abs() is unnecessary, and RPBSRPN(x^2) = x.
Surely you don't believe that sqrt of positive numbers are always positive.
Le mercredi 3 juillet 2013 01:07:35 UTC+2, rjf a écrit :Your statement then translates to RPBSRPN(x^2) = abs(x) .
But then if it ir R+-->R+, the abs() is unnecessary, and RPBSRPN(x^2) = x.
No, the abs is necessary: consider the following function:
f : R --> R+, x |--> RPBSRPN(x^2)
then, for x<0, f(x) = abs(x) = -x.
Surely you don't believe that sqrt of positive numbers are always positive.
Yes I do:
although a positive number has two square roots, a positive one and a negative one, the standard expectation regarding the sqrt function is that sqrt(x) is THE positive square root of x if x is a positive number.
Hence my initial post in this thread.