Jump to content

Lah numbers: Difference between revisions

m
Line 465:
<lang J>
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
Line 479 ⟶ 480:
times =: * Dyad
extend_precision =: x: Monad
wordy_lah =: ((combinations but_1st decrement) times (into but_1st factorial))but_1st extend_precision Dyad
</lang>
<pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.