Hacker News new | ask | show | jobs
by beagle3 340 days ago
APL was designed as a notation for math; if you pronounce it properly, it makes more sense than numpy:

The 10 by 10 reshaping of counting to 100

1 comments

Numpy: Counting to 100, then reshaped to 10 x 10. Doesn't really seem all that different to me.
It’s not very different, but it’s the numpy way is not the math way: when you talk math, you say “the exponent of the absolute value of the cosine of x”, like in APL, not “take x, get its cosine, then take the absolute value, and then get its exponent”

In fact, for many things, you so the math way in numpy as well. But in other things, the dot/object-oriented way is preferred.

APL is just consistent, terse, mathematical notation.