3 ms·
I like Julia and Python, however when I'm playing with doing math, or using paper, I like APL or J. The above example in J: 3 3 $ i.9 0 1 2 3 4 5 6 7 8
by eggy 2y ago
I like Julia and Python, however when I'm playing with doing math, or using paper, I like APL or J.
The above example in J:
3 3 $ i.9
0 1 2
3 4 5
6 7 8
3 3 $ >: i.9
1 2 3
4 5 6
7 8 9
J is 0-indexed. ">:" is the increment operator. APL allows you to set a parameter to do 1-indexed vs. 0-indexed.
APL:
3 3 ρ ι9
1 2 3
4 5 6
7 8 9
There is a Calculus text for learning it with J:
https://www.jsoftware.com/books/pdf/calculus.pdf https://www.jsoftware.com/books/pdf/calculus.pdf
- garbthetill 2y agointeresting, i was thinking of sharping my maths skill by programming. Have you tried something like lean, agda etc if so how do they fair against apl or j for doing maths I honestly thought apl was extinct
- eggy 2y agoI've tried Idris. J and APL are great for quick analysis once you know them. I leave J open on my desktop for engineering and stats. Frink too for effortless units work. Haskell and its ilk are good for math. Programming to learn math works really well for some, since you work through a problem incrementally, especially with dynamic interpreters and REPLs. Pluto with Julia or Jupyter with Python or Mathematica too.