Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meaning of life #19

Open
melsman opened this issue Nov 4, 2016 · 2 comments
Open

Meaning of life #19

melsman opened this issue Nov 4, 2016 · 2 comments

Comments

@melsman
Copy link
Owner

melsman commented Nov 4, 2016

We are not far from being able to execute the following one-liner - see http://aplwiki.com/FinnAplIdiomLibrary#Miscellaneous:

⍎⊖⍕⊃⊂|⌊-*+○⌈×÷!⌽⍉⌹~⍴⍋⍒,⍟?⍳0

We will not be able to support execute , box . So we should, with an implementation of be able to compile the following expression:

⊖⍕⊃|⌊-*+○⌈×÷!⌽⍉⌹~⍴⍋⍒,⍟?⍳0

Here is how it looks with http://www.tryapl.org:

image

Comments:

  • In the example, ⌹ is applied to the scalar 1.
  • There is an issue with ⍳0; ⍳ is required to take an integer value - subtyping fix needed.
  • We don't support '!'.
@athas
Copy link

athas commented Nov 4, 2016

Do you know of a good description of ⌹?

\ Troels
/\ Henriksen

@melsman
Copy link
Owner Author

melsman commented Nov 4, 2016

Dyadic: A ⌹ B = (⌹B)+.×A

Monadic: Matrix inverse (see http://dyalog.com/uploads/documents/MasteringDyalogAPL.pdf page 453)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants