Subject: Problems with ONEARGCHECK and TWOARGCHECK
From: Dieter Kaiser
Date: Thu, 24 Jul 2008 22:03:00 +0200
Today I recognized a strange behaviour of the code of ONEARGCHECK and
TWOARGCHECK which test the correct number of arguments of a Maxima function.
A correct example for the Gamma function:
(%i2) gamma(1,2);
Wrong number of arguments to gamma
-- an error. To debug this try debugmode(true);
(%i3) gamma();
Wrong number of arguments to gamma
-- an error. To debug this try debugmode(true);
But when I test the Bessel J function I get the following:
(%i4) bessel_j(1);
(%o4) bessel_j(1, #<compiled-closure 03cd5e38>)
(%i5) bessel_j(1,2,3);
(%o5) bessel_j(1, 2)
One more example for the Airy function:
(%i7) airy_ai();
(NIL . |$;|) is a cons with an atomic cdr - `simplifya'
-- an error. To debug this try debugmode(true);
(%i8) airy_ai(1,2);
(%o8) airy_ai(1)
Is this only a problem of my system? What is wrong?
I use gcl 2.6.8 and the Maxiam CVS code on a Windows XP system.
Dieter Kaiser