If you are like me you constantly want to read about APL related stuff.
If that's the case, check out my latest essay APL At Its Core (https://ac1235.github.io/apl.html) and also take a look at @alexcweiner APL blog (http://blog.alexweiner.com)
@alexcweiner I wrote up a sort-of blog post for this with elaboration to explain the parts of APL I used.
https://lobste.rs/s/ievyyw/apl_for_ml_k_means_clustering
@J.Sallé So you can generate a reasonable array (nested or high-rank — it will figure it all out by itself) with all your data, e.g. x←0.1ׯ50+⍳100 ⋄ y←x*2 ⋄ data←x y and then position the caret on data and click the chart button
Challenge
Given an input of an integer, \$n\$ (where \$0<n<50\$), output the graph of \$y=\mathrm{Re}((-n)^x)\$ from \$x = -3\$ to \$x = 3\$ inclusive.
Where \$\mathrm{Re}(p)\$ is the real part of the complex number \$p\$.
Note that \$\mathrm{Re}((-n)^x) = n^x \cos{(\pi x)}\$
Output
The out...
@FrownyFrog I've been thinking that A∘f and f∘B could ignore their left argument (or should the latter ignore the right arg when called dyadically?), and A∘F∘B could ignore any or both arguments.