gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] [Maxima] Fwd: Fix for $matrix (Was: "matrix([matrix([" r


From: Henry Baker
Subject: Re: [Gcl-devel] [Maxima] Fwd: Fix for $matrix (Was: "matrix([matrix([" returned with mat_function (Was: Re: Symbolic matrix power))
Date: Thu, 31 Oct 2013 08:50:58 -0700

Hi Stavros:

Your examples are downright weird!

Doesn't EVAL call APPLY ?

How come EVAL works, and APPLY doesn't ?

At 05:38 PM 10/29/2013, Stavros Macrakis wrote:
>In GCL 2.6.8, apply is limited to 63 arguments, though eval doesn't seem to 
>have that issue. This causes various problems for Maxima.
>
>Does it suffice to compile with a larger MAX_ARGS and ARG_LIMIT to increase 
>the limit? Does that have any negative consequences?
>
>Thanks,
>
>         -s
>
>(defun f100 (x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 
>x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 x31 x32 x33 x34 x35 x36 x37 
>x38 x39 x40 x41 x42 x43 x44 x45 x46 x47 x48 x49 x50 x51 x52 x53 x54 x55 x56 
>x57 x58 x59 x60 x61 x62 x63 x64 x65 x66 x67 x68 x69 x70 x71 x72 x73 x74 x75 
>x76 x77 x78 x79 x80 x81 x82 x83 x84 x85 x86 x87 x88 x89 x90 x91 x92 x93 x94 
>x95 x96 x97 x98 x99 )
>(list x0 x33 x66 x99))
>
>(defun l100 (&rest x)
>  (list (nth 0 x) (nth 33 x) (nth 66 x) (nth 99 x)))
>
>(setq hundred '(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 
>24 25 26 27 28 29 30
> 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 
> 57
> 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 
> 84
> 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ))
>
>(eval (cons 'f100 hundred))    ;; works
>(eval (cons 'l100 hundred))    ;; works
>(apply 'f100 hundred)               ;; FAIL
>(apply 'l100 hundred)               ;; FAIL
>
>---------- Forwarded message ----------
>From: Robert Dodier <address@hidden>
>Date: Tue, Oct 29, 2013 at 12:49 PM
>Subject: Re: [Maxima] Fix for $matrix (Was: "matrix([matrix([" returned with 
>mat_function (Was: Re: Symbolic matrix power))
>To: address@hidden
>
>On 2013-10-29, Henry Baker <address@hidden> wrote:
>
>> Any hope that this APPLY problem can be fixed with a compile-time constant 
>> in GCL ?
>
>Well, grepping through the GCL source code finds the #defines MAX_ARGS
>and ARG_LIMIT, which are both 63 ... I guess one could change them and
>rebuild GCL and then Maxima, although I would wonder if there will be
>unintended effects from that.
>
>> It's also affecting my use of DRAW.
>
>What is that bug? Could you please report it to the bug tracker, if you
>haven't already? http://sf.net/p/maxima/bugs
>
>> Or should I switch to SBCL Maxima ?
>
>If you are routinely rebuilding Maxima, it shouldn't be any problem to
>use SBCL. From what I know, the Windows version of SBCL works OK.
>
>best
>
>Robert Dodier




reply via email to

[Prev in Thread] Current Thread [Next in Thread]