bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] axis specification issue... (?)


From: Jay Foad
Subject: Re: [Bug-apl] axis specification issue... (?)
Date: Tue, 14 Apr 2015 09:09:09 +0100

On 14 April 2015 at 07:31, Fausto Saporito <address@hidden> wrote:
> Hello,
>
> as I wrote before I'm trying to use the Sullivan multi precision
> package with GNU APL.
> That workspace was written with Dyalog APL in mind, so there're some
> Dyalog feature we saw before ([]SIGNAL, []FMT).
> Those are now ok.
>
> But I have this problem:
>
> {delta}6:{->}(0^.=x{<-}(-{rho}f),1 {neg}1[s]{times}x,f)/0 @ Put it all
> together, quit if zero
>
> it gives me RANK ERROR
>
> RANK ERROR
> Fexec[30]  →(0∧.=x←(-⍴f),1 ¯1[s]×x,f)/0
>                                               ^             ^
> when i try to calculate '234233' ADD '23434983498'. I suppose the
> problem could be the AXIS [s], but I'm not sure how to read exactly
> the error message.

You need parentheses around (1 ¯1).

[s] here is just indexing, not an axis specification. In Dyalog APL, 3
4 5[2] is parsed as (3 4 5)[2]. But in APL2 and GNU APL it's parsed as
3 4 (5[2]).

Jay.



reply via email to

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