There are some more math-related code charts. /Erling


Den 2017-11-29 kl. 01:35, skrev Jose Mario Quintana:
I managed to produce a few more:

⊂ =. <
⊃ =. >
○ =. o.

¨ =. &.>
⍣ =. ^:
⍞=. 1!:1@(1"_)@:(1!:2&2@:(] [ (('(wd)'"_) 128!:2 ])@:('msgs'"_))@:[) NB. +
or -
⍨ =. ~

Yet, for example, I do not have the slightest idea of what these do:
⍠ ⍯ ⍰ ⍌ ⍍ ⍐ ⍓ ⍔ ⍗ ⌷ ⌸

The math characters on that page are nice indeed!

√ =. %:

∑ =. +/
∐ =. */

⊙ =. *                            NB. Hadamard product

Block=. (,./^:2)@:
⊗ =. */Block                      NB. Kronecker product
∗ =. */Block &.>                  NB. Khatri-Rao product
⋈ =. (1 0 3 |: */)Block&.>/Block  NB. Tracy-Singh product

...  You name it ;)


On Tue, Nov 28, 2017 at 3:22 AM, Erling Hellenäs <[email protected]>
wrote:

Cool. And here some nice mathematical unicode characters we could possibly
use. http://jrgraphix.net/r/Unicode/2200-22FF /Erling



Den 2017-11-28 kl. 01:59, skrev Jose Mario Quintana:

     ⌽ ⌹ ⍉ (4 4 ⍴ ⍳ 16) ⋆ 0.5

47.4709 _536.891 986.951 _495.868

_85.5088 930.92 _1689.17 841.731

39.2057 _386.597 679.391 _331.519

_2.29896 8.48562 _10.1715 3.98314



Neither, it is J's fork Jx after running the following script:

NB. APL retro...


NB. ¯


× =. *

÷ =. %


NB. ∘ =. "0/ ⍝ Not really (e.g., 1 2 3 , ∘ 4 5 6)


∣ =. |

∼ =. -.

≠ =. ~:

≤ =. <:

≥ =. >:


NB. ≬ ⌶


⋆ =. ^


NB.⌾


⍟ =. ^.

⌽ =. |.

⍉ =. |:


NB. ⍝ ⍦ ⍧ ⍪ ⍫ ⍬ ⍭ ←


↑ =. {.

NB. →

↓ =. }.


NB. ∆ ∇


∧ =. *.

∨ =. +.


NB. ∩ ∪


⌈ =. >.

⌊ =. <.

∈ =. e.

⊤ =. #.

⊥ =. #:


NB. ⊂ ⊃


⌿ =. /

⍀ =. /\


NB. ⍅ ⍆ ⍏ ⍖ ⍊ ⍑


⍋ =. /:

⍒ =. \:

⍎ =. ".

⍕ =. ":


NB. ⍱ ⍲ ○


⍳ =. i.

⍴ =. $


NB. ⍵ ⍺ ⍶ ⍷ ⍸ ⍹ ⍘ ⍙ ⍚ ⍛ ⍜ ⍮ ¨ ⍡ ⍢ ⍣ ⍤ ⍥ ⍨ ⍩

NB. ⎕ ⍞ ⍠ ⍯ ⍰ ⍌ ⍍ ⍐ ⍓ ⍔ ⍗ ⌷ ⌸

⌹ =. %.

NB. ⌺ ⌻ ⌼ ⍁ ⍂ ⍃ ⍄ ⍇ ⍈



⌽ ⌹ ⍉ (4 4 ⍴ ⍳ 16) ⋆ 0.5


Extra spaces are required because Unicode characters are just forming
names.

I got this list of APL characters from:
http://xahlee.info/comp/unicode_APL_symbols.html

I did not complete many definitions because some cannot have a
counterpart,
I ran out of time, I did not remember exactly the definition or I have no
idea what they mean...  I wonder how many primitives in modern APLs could
have interesting useful counterparts in J.

This is, of course, just for fun since APL and J are different.  In
addition, I would not be surprised if I got some of these definitions
wrong
   (I have not used APL for more than a decade and a half and I cannot test
anything).

:)

PS.  Nevertheless, any corrections, extensions, and comments would be
appreciated.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
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