share testsuite



Am Sonntag, den 26.07.2009, 21:29 -0500 schrieb Barton Willis:
> I'm seeing more failures in the share test suite than I did the last time
> I tried. Not long ago, there were no unexpected errors in rtest_hg.mac.
> Now I'm getting errors such as
> 

> Also, I'm seeing an error from rtest_fractals that %exp is undefined.
> This might be a new error.

Yes, I think this error is new and caused by a change to the noun/verb
behavior I have introduced for the exp function. The command compile
does no longer work with the exp function. Here an example:

(%i2) f(x):=exp(x);
(%o2) f(x):=exp(x)

That is now what we get back from the parser:

(%i3) :lisp $%
((MDEFINE SIMP) (($F) $X) ((%EXP) $X))

The function will work:

(%i3) f(10);
(%o3) %e^10

But the function can not be compiled:

(%i4) compile(f);
WARNING in $F :
Function %EXP is not defined
(%o4) [f]
(%i5) f(10);
Maxima encountered a Lisp error:
FUNCALL: undefined function %EXP
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

I have done a change in one file of the translator too. I have tried to
change it to get code we have for the sqrt function. This function
works:

(%i6) g(x):=sqrt(x);
(%o6) g(x):=sqrt(x)
(%i7) :lisp $%
((MDEFINE SIMP) (($G) $X) ((%SQRT) $X))
(%i7) compile(g);
(%o7) [g]
(%i8) g(10);
(%o8) sqrt(10)

I will have a further look at the exp function to understand the
difference.

Dieter Kaiser