I'm proud of myself. Just created a point free expression that compares the arithmetic with the geometric mean, for any given array of numbers: +/⊣÷≢⊣≥⍥×/⊢*1÷≢⊢
gm
@xpqz 's book helped me understand how the omicron with the diairesis works :)
Arrays of functions can be obtained using ⎕OR (Object Representation) and the fact that such objects become reconstituted into functions used as operands. It is easiest to define some helper operators first:
_Arrayify←{f←⍺⍺ ⋄ ⎕OR'f'}
_Apply←{2=⎕NC'⍺':⍺ ⍺⍺ ⍵ ⋄ ⍺⍺ ⍵}
Now, let's define ...
@FawnLocke Yeah, I'm planning on putting dfns.dws on GitHub so we can start enhancing it. I don't know why it isn't advertised more. People hate ⎕OR and the whole system is a bit awkward.
did a post on r/math, regarding my last am >= gm code snippet. I know it's not big deal, but hey, maybe another mathematician will appreciate the beauty of it; especially those specialized in algebra, I believe will be intrigued :)
@PaulMansour They are not even comparable. The namespace kludge is like the lamb in The Little Prince: The array of functions is there, but you can't access it!
In order to manipulate your namesspace-kludge "array of functions", you can't actually have an array of functions, but have to leave it as an array of namespaces, and then you need an "operator" (can be a function or .f) to apply with.
But it truly allows you to deal with functions as first-class objects; you can compare them too. ns1≡ns2 gives 0 even if they only contain identical fs.
Yes, true. You can also take them out and move them around. There is that.
But for actual practical day to day use, the array of namespaces might be better. In fact we do it all the time with objects and methods, and no eaches necessary.
English is an ambiguous language. APL is not. The rule for the age difference between husband and wife is "half his age plus seven years". Is that 7+h÷2, or is it 2÷⍨h+7
There's no such thing as English per se It's just an agreement between English-speakers, it's extremely context sensitive, and it's interpreter in varying ways.
Spider is a type of patience game, and is one of the more popular two-deck solitaire games. The game originates in 1949, and its name comes from a spider's eight legs, referencing the eight foundation piles that must be filled to win the game.
== Rules ==
The main purpose of the game is to remove all cards from the table, assembling them in the tableau before removing them. Initially, 54 cards are dealt to the tableau in ten piles, face down except for the top cards. The tableau piles build down by rank, and in-suit sequences can be moved together. The 50 remaining cards can be dealt to ...
Dyadic ○ takes a "circular" (trigonometric/Pythagorean/complex) function selector number as left argument, and the main argument as right argument. Listing.