Subject: Problems with ONEARGCHECK and TWOARGCHECK
From: Billinghurst, David (RTATECH)
Date: Fri, 25 Jul 2008 09:47:06 +1000
> From: Dieter Kaiser
>
> 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
airy.lisp was my first lisp contribution to maxima, and a little
learning
project. There may be bugs.
David Billinghurst
NOTICE
This e-mail and any attachments are private and confidential and may contain privileged information. If you are not an authorised recipient, the copying or distribution of this e-mail and any attachments is prohibited and you must not read, print or act in reliance on this e-mail or attachments.
This notice should not be removed.