You may think you are close to a solution but there are serious problems.
 e.g.

- does * denote times or exponentiation (is * the APL * or the ASCII *)?
- you can enter i. as ⍳ but for i: you must enter i:
- |. is not ⌽ but ⊖, depending on which APL you are talking about
- / is not / but ⌿, depending on which APL you are talking about
- etc.

I will say no more, except to repeat: don't go there.






On Thu, Feb 27, 2014 at 9:39 PM, bill lam <bbill....@gmail.com> wrote:

> With some modicitions, J can accpet both ascii and about
> 30 APL symbols as primitive,
>
>   ⌈    >.   Ceiling
>   ⌊    <.   Floor
>   ⍴    $    Shape
>   ∼    -.   Not
>   ∣    |    Absolute value
>   ⍳    i.   Index generator
>   ⋆    ^    Exponential
>   −    -    Negation
>   ⌹    %.   Matrix inverse
>   ○    o.   Pi times
>   ⍟    ^.   Logarithm
>   ⌽    |.   Reversal
>   ⍋    /:   Grade up
>   ⍒    \:   Grade down
>   ⍎    ".   Execute
>   ⍕    ":   Monadic format
>   ⍉    |:   Monadic transpose
>   ∈    e.   Membership
>   ↑    {.   Take
>   ↓    }.   Drop
>   ⊥    #:   Decode
>   ⊤    #.   Encode
>   ≤    <:   Less than or equal
>   ≥    >:   Greater than or equal
>   ≠    ~:   Not equal
>   ∨    +.   Or
>   ∧    *.   And
>   ⍱    +:   Nor
>   ⍲    *:   Nand
>   ←    =.   Is
>
>   ×    *    Signum
>   ÷    %    Reciprocal
>
>
>    [A←4 3⍴⍳12
> 0  1  2
> 3  4  5
> 6  7  8
> 9 10 11
>    ⌽
> |.
>    ⌽A
> 9 10 11
> 6  7  8
> 3  4  5
> 0  1  2
>      |.⌽|.A
> 9 10 11
> 6  7  8
> 3  4  5
> 0  1  2
>     f=: '⍳'&⍳
>    5!:5 <'f'
> (226 141 179{a.)&i.
>
> Furthermore, I guess a new global parameter 9!:50/51 could
> be used to control 5!:x to print ascii or APL symbol
>
> Other APL symbols are rejected becuase J uses different concepts.
> Rotation (first axis) ⊖
> Reduce (first axis) ⌿
> Scan (first axis)   ⍀
> Outer product       ∘.
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to