• Why in APL there is different behaviour of ,{dieresis} for differents t

    From Rosario19@21:1/5 to All on Wed Nov 15 14:43:36 2023
    Why ",{dieresis}" has a different behaviour in 1,{dieresis}1 2 3 4 and b,{dieresis}a?
    a{leftarrow}(1 2)(2 3)(4 5)(6 7)
    o{leftarrow}{quad}fmt
    o a
    +4--------------------------+
    ฆ+2---+ +2---+ +2---+ +2---+ฆ
    ฆฆ 1 2ฆ ฆ 2 3ฆ ฆ 4 5ฆ ฆ 6 7ฆฆ
    ฆ+~---+ +~---+ +~---+ +~---+2
    +?--------------------------+
    b{leftarrow}(0 0)
    o b
    +2---+
    ฆ 0 0ฆ
    +~---+
    o b,{dieresis}a
    LENGTH ERROR
    o b,{dieresis}a
    ?
    o 1 2 3 4
    +4-------+
    ฆ 1 2 3 4ฆ
    +~-------+
    o 1
    1
    ~
    o 1,{dieresis}1 2 3 4
    +4--------------------------+
    ฆ+2---+ +2---+ +2---+ +2---+ฆ
    ฆฆ 1 1ฆ ฆ 1 2ฆ ฆ 1 3ฆ ฆ 1 4ฆฆ
    ฆ+~---+ +~---+ +~---+ +~---+2
    +?--------------------------+

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bob Smith@21:1/5 to All on Thu Nov 16 15:16:37 2023
    On 11/15/2023 8:43 AM, Rosario19 wrote:

    Why ",{dieresis}" has a different behaviour in 1,{dieresis}1 2 3 4 and b,{dieresis}a?
    a{leftarrow}(1 2)(2 3)(4 5)(6 7)
    o{leftarrow}{quad}fmt
    o a
    +4--------------------------+
    ยฆ+2---+ +2---+ +2---+ +2---+ยฆ
    ยฆยฆ 1 2ยฆ ยฆ 2 3ยฆ ยฆ 4 5ยฆ ยฆ 6 7ยฆยฆ
    ยฆ+~---+ +~---+ +~---+ +~---+2
    +?--------------------------+
    b{leftarrow}(0 0)
    o b
    +2---+
    ยฆ 0 0ยฆ
    +~---+
    o b,{dieresis}a
    LENGTH ERROR
    o b,{dieresis}a
    ?

    This expression produces an error because b is a two-element vector and
    a is a four-element vector, and are of incompatible lengths for ,ยจ .
    When you specified the elements of a, you enclosed each element in
    parens which works only when there are two or more elements. When you specified b as in bโ†(0 0), the parens don't enclose the value. Perhaps
    what you meant is to use the enclose function explicitly as in bโ†โŠ‚0 0. Now

    b,ยจa โ”Œ4โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚โ”Œ4โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œ4โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œ4โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œ4โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”โ”‚
    โ”‚โ”‚ 0 0 1 2โ”‚ โ”‚ 0 0 2 3โ”‚ โ”‚ 0 0 4 5โ”‚ โ”‚ 0 0 6 7โ”‚โ”‚ โ”‚โ””~โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””~โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””~โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””~โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜2
    โ””โˆŠโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

    o 1 2 3 4
    +4-------+
    ยฆ 1 2 3 4ยฆ
    +~-------+
    o 1
    1
    ~
    o 1,{dieresis}1 2 3 4
    +4--------------------------+
    ยฆ+2---+ +2---+ +2---+ +2---+ยฆ
    ยฆยฆ 1 1ยฆ ยฆ 1 2ยฆ ยฆ 1 3ยฆ ยฆ 1 4ยฆยฆ
    ยฆ+~---+ +~---+ +~---+ +~---+2
    +?--------------------------+

    In this case, the scalar left argument to ,ยจ extends to catenate the
    scalar to each element in the right arg, as in

    1,ยจ1 2 3 4 โ”Œ4โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚โ”Œ2โ”€โ”€โ”€โ” โ”Œ2โ”€โ”€โ”€โ” โ”Œ2โ”€โ”€โ”€โ” โ”Œ2โ”€โ”€โ”€โ”โ”‚ โ”‚โ”‚ 1 1โ”‚ โ”‚ 1 2โ”‚ โ”‚ 1 3โ”‚ โ”‚ 1 4โ”‚โ”‚
    โ”‚โ””~โ”€โ”€โ”€โ”˜ โ””~โ”€โ”€โ”€โ”˜ โ””~โ”€โ”€โ”€โ”˜ โ””~โ”€โ”€โ”€โ”˜2 โ””โˆŠโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

    The most recent beta version of NARS2000.org supports )BOX ON to produce
    the boxed displays seen above.

    BTW, if you set your email client to encode the text as UTF-8, then you
    can copy text directly from your APL program into an email msg, as I did
    above.

    --
    _________________________________________
    Bob Smith -- bsmith@sudleydeplacespam.com
    http://www.sudleyplace.com - http://www.nars2000.org

    To reply to me directly, delete "despam".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rosario19@21:1/5 to All on Fri Nov 17 09:55:17 2023
    On Fri, 17 Nov 2023 09:49:41 +0100, Rosario19 <Ros@invalid.invalid>
    wrote:

    On Thu, 16 Nov 2023 15:16:37 -0500, Bob Smith wrote:
    The most recent beta version of NARS2000.org supports )BOX ON to produce >>the boxed displays seen above.

    yes i know that

    above is wrong i did not know that, i would think the speech was for
    fmt

    so ok )BOX ON is fmt for all input


    BTW, if you set your email client to encode the text as UTF-8, then you
    can copy text directly from your APL program into an email msg, as I did >>above.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rosario19@21:1/5 to bsmith@sudleydeplacespam.com on Fri Nov 17 09:49:41 2023
    On Thu, 16 Nov 2023 15:16:37 -0500, Bob Smith
    <bsmith@sudleydeplacespam.com> wrote:

    On 11/15/2023 8:43 AM, Rosario19 wrote:

    Why ",{dieresis}" has a different behaviour in 1,{dieresis}1 2 3 4 and
    b,{dieresis}a?
    a{leftarrow}(1 2)(2 3)(4 5)(6 7)
    o{leftarrow}{quad}fmt
    o a
    +4--------------------------+
    ฆ+2---+ +2---+ +2---+ +2---+ฆ
    ฆฆ 1 2ฆ ฆ 2 3ฆ ฆ 4 5ฆ ฆ 6 7ฆฆ
    ฆ+~---+ +~---+ +~---+ +~---+2
    +?--------------------------+
    b{leftarrow}(0 0)
    o b
    +2---+
    ฆ 0 0ฆ
    +~---+
    o b,{dieresis}a
    LENGTH ERROR
    o b,{dieresis}a
    ?

    This expression produces an error because b is a two-element vector and
    a is a four-element vector, and are of incompatible lengths for ,จ .
    When you specified the elements of a, you enclosed each element in
    parens which works only when there are two or more elements. When you >specified b as in b?(0 0), the parens don't enclose the value.

    enclose for me means that operator depth here {equalunderbar} return
    great than 0

    {equalunderbar}1 2{cr}{lf}
    1{cr}{lf}
    {equalunderbar}1{cr}{lf}
    0{cr}{lf}

    Perhaps
    what you meant is to use the enclose function explicitly as in b??0 0. Now

    b,จa
    ?4???????????????????????????????????????????
    ??4???????? ?4???????? ?4???????? ?4?????????
    ?? 0 0 1 2? ? 0 0 2 3? ? 0 0 4 5? ? 0 0 6 7??
    ??~???????? ?~???????? ?~???????? ?~????????2 >?????????????????????????????????????????????

    o 1 2 3 4
    +4-------+
    ฆ 1 2 3 4ฆ
    +~-------+
    o 1
    1
    ~
    o 1,{dieresis}1 2 3 4
    +4--------------------------+
    ฆ+2---+ +2---+ +2---+ +2---+ฆ
    ฆฆ 1 1ฆ ฆ 1 2ฆ ฆ 1 3ฆ ฆ 1 4ฆฆ
    ฆ+~---+ +~---+ +~---+ +~---+2
    +?--------------------------+

    In this case, the scalar left argument to ,จ extends to catenate the
    scalar to each element in the right arg, as in

    1,จ1 2 3 4
    ?4???????????????????????????
    ??2???? ?2???? ?2???? ?2?????
    ?? 1 1? ? 1 2? ? 1 3? ? 1 4??
    ??~???? ?~???? ?~???? ?~????2
    ?????????????????????????????

    The most recent beta version of NARS2000.org supports )BOX ON to produce
    the boxed displays seen above.

    yes i know that

    BTW, if you set your email client to encode the text as UTF-8, then you
    can copy text directly from your APL program into an email msg, as I did >above.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rosario19@21:1/5 to All on Fri Nov 17 10:03:58 2023
    On Fri, 17 Nov 2023 09:55:17 +0100, Rosario19 <Ros@invalid.invalid>
    wrote:

    On Fri, 17 Nov 2023 09:49:41 +0100, Rosario19 <Ros@invalid.invalid>
    wrote:

    On Thu, 16 Nov 2023 15:16:37 -0500, Bob Smith wrote:
    The most recent beta version of NARS2000.org supports )BOX ON to produce >>>the boxed displays seen above.

    yes i know that

    above is wrong i did not know that, i would think the speech was for
    fmt

    so ok )BOX ON is fmt for all input


    BTW, if you set your email client to encode the text as UTF-8, then you >>>can copy text directly from your APL program into an email msg, as I did >>>above.

    thank you

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bob Smith@21:1/5 to All on Mon Nov 20 14:37:51 2023
    On 11/17/2023 3:49 AM, Rosario19 wrote:
    On Thu, 16 Nov 2023 15:16:37 -0500, Bob Smith
    <bsmith@sudleydeplacespam.com> wrote:

    On 11/15/2023 8:43 AM, Rosario19 wrote:

    Why ",{dieresis}" has a different behaviour in 1,{dieresis}1 2 3 4 and
    b,{dieresis}a?
    a{leftarrow}(1 2)(2 3)(4 5)(6 7)
    o{leftarrow}{quad}fmt
    o a
    +4--------------------------+
    ยฆ+2---+ +2---+ +2---+ +2---+ยฆ
    ยฆยฆ 1 2ยฆ ยฆ 2 3ยฆ ยฆ 4 5ยฆ ยฆ 6 7ยฆยฆ
    ยฆ+~---+ +~---+ +~---+ +~---+2
    +?--------------------------+
    b{leftarrow}(0 0)
    o b
    +2---+
    ยฆ 0 0ยฆ
    +~---+
    o b,{dieresis}a
    LENGTH ERROR
    o b,{dieresis}a
    ?

    This expression produces an error because b is a two-element vector and
    a is a four-element vector, and are of incompatible lengths for ,ยจ .
    When you specified the elements of a, you enclosed each element in
    parens which works only when there are two or more elements. When you
    specified b as in b?(0 0), the parens don't enclose the value.

    enclose for me means that operator depth here {equalunderbar} return
    great than 0

    {equalunderbar}1 2{cr}{lf}
    1{cr}{lf}
    {equalunderbar}1{cr}{lf}
    0{cr}{lf}

    That's correct, except for simple scalars where the depth remains at 0.

    โ‰ก1
    0
    โ‰กโŠ‚1
    0
    โ‰ก1 2
    1
    โ‰กโŠ‚1 2
    2

    --
    _________________________________________
    Bob Smith -- bsmith@sudleydeplacespam.com
    http://www.sudleyplace.com - http://www.nars2000.org

    To reply to me directly, delete "despam".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)