Sorry, but I don't know how to use batch any more
because I cannot find a way to write the output.
For example, could someone tell me how to have a test
for the following command (load(sarag) required):
sRem(x^4+a*x^2+b*x+c,diff(x^4+a*x^2+b*x+c,x),x);
How can I copy the output in the batch file?
If I do in the above example, the output shown
during the test has a different order of terms
and the test fails.
I think some soft simplification should be allowed
like parenteses and reordering.
Fabrizio
On Mon, 29 Oct 2007, Stavros Macrakis wrote:
> On 10/29/07, Fabrizio Caruso <caruso at dm.unipi.it> wrote:
>> It seems that the behaviour of batch has changed.
>>
>> My test do not work because things that are
>> equal are considered different if they are not identical
>
> Yes, batch/test used to compare the actual and expected output by
> resimplifying using ratsimp. But that didn't detect many kinds of
> bugs. For example, factor(x^2-1) would accept x^2-1 as a
> factorization! Other bugs which were not detected where when Maxima
> didn't perform a simplification it was supposed to. For example, if
> in some context sin(-x) didn't simplify to -sin(x), test would still
> think the test succeeded.
>
>> and I haven't found a way to force them to be identical.
>
>> Example:
>> computed result is:
>> ... - (2 a x^2 + 3 b x + 4 x)/4 ...
>>
>> I write the identical thing as expected output
>> but maxima reorders the addends and shows during the test:
>> ... -(4 c + 3 b x + 2 a x^2)/4 ...
>
> You should use precisely the output of the computed result as shown by
> "string". If this doesn't work, something is wrong, and you should
> file a detailed bug report showing how to reproduce it.
>
> -s
>