cas complex tests



-----maxima-bounces at math.utexas.edu wrote: -----

>On?11/11/2010?7:33?AM,?Barton?Willis?wrote:
>>?How?many?users?will?be?satisfied?with:
>>
>>???(%i1)?integrate(sqrt((x^2-2*x+1)/x),x,0,1);
>>???(%o1)?-4/3
>>
>>???(%i2)?integrate(sqrt(x-2+1/x),x,0,1);
>>???(%o2)?4/3
>>
>>?--Barton
>>
>I'm?not?sure?that?this?has?to?do?with?integration.

The bug has nothing to do with integration--it's a example of the
kinds of problems that arise when Maxima is careless about
simplifications of the power function. I thought it was an example
that most everybody would agree is a bug. The bogus simplification
sqrt(x*y) --> sqrt(x) * sqrt(y) is listed in Helmer Aslaksen's paper
as Test 1 on page 7.

The integration integrate(sqrt(x-2+1/x),x,0,1) is in the testsuite;
maybe integrate(sqrt((x^2-2*x+1)/x),x,0,1) isn't in the testsuite. If
I recall, Maxima was patched to fix a bug with
integrate(sqrt(x-2+1/x),x,0,1); the integrate(sqrt((x^2-2*x+1)/x),x,0,1) 
bug remains.

--Barton