Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Lah-numbers/J/lah-numbers.j
Normal file
17
Task/Lah-numbers/J/lah-numbers.j
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
NB. use: k lah n
|
||||
lah=: ! :(!&<: * %&!~)&x: NB. `%~' is shorter than `*inv'
|
||||
|
||||
NB. wory_lah translates lah to algebraic English.
|
||||
Monad =: :[: NB. permit only a y argument
|
||||
Dyad =: [: : NB. require x and y arguments
|
||||
but_1st =: &
|
||||
decrement =: <: Monad
|
||||
|
||||
NB. ! means either factorial or combinations (just as - means negate or subtract)
|
||||
factorial =: ! Monad
|
||||
combinations =: ! Dyad
|
||||
|
||||
into =: *inv Dyad
|
||||
times =: * Dyad
|
||||
extend_precision =: x: Monad
|
||||
wordy_lah =: ((combinations but_1st decrement) times (into but_1st factorial))but_1st extend_precision Dyad
|
||||
Loading…
Add table
Add a link
Reference in a new issue