A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,3 @@
|
|||
: factorial ( n -- n! ) [1,b] product ;
|
||||
|
||||
CONSTANT: 10-factorial $[ 10 factorial ]
|
||||
|
|
@ -0,0 +1 @@
|
|||
pf10=: smoutput bind (!10)
|
||||
26
Task/Compile-time-calculation/J/compile-time-calculation-2.j
Normal file
26
Task/Compile-time-calculation/J/compile-time-calculation-2.j
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
9!:3]1 2 4 5 6
|
||||
|
||||
pf10
|
||||
┌───────────────────────────────────────┐
|
||||
│┌─┬───────────────────────────────────┐│
|
||||
││@│┌────────┬────────────────────────┐││
|
||||
││ ││smoutput│┌─┬────────────────────┐│││
|
||||
││ ││ ││"│┌────────────┬─────┐││││
|
||||
││ ││ ││ ││┌─┬────────┐│┌─┬─┐│││││
|
||||
││ ││ ││ │││0│3.6288e6│││0│_││││││
|
||||
││ ││ ││ ││└─┴────────┘│└─┴─┘│││││
|
||||
││ ││ ││ │└────────────┴─────┘││││
|
||||
││ ││ │└─┴────────────────────┘│││
|
||||
││ │└────────┴────────────────────────┘││
|
||||
│└─┴───────────────────────────────────┘│
|
||||
└───────────────────────────────────────┘
|
||||
┌────────┬─┬──────────────┐
|
||||
│smoutput│@│┌────────┬─┬─┐│
|
||||
│ │ ││3.6288e6│"│_││
|
||||
│ │ │└────────┴─┴─┘│
|
||||
└────────┴─┴──────────────┘
|
||||
┌─ smoutput
|
||||
── @ ─┤ ┌─ 3628800
|
||||
└─ " ──────┴─ _
|
||||
smoutput@(3628800"_)
|
||||
smoutput@(3628800"_)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
pf10 ''
|
||||
3628800
|
||||
|
|
@ -0,0 +1 @@
|
|||
f = Compile[{}, 10!]
|
||||
|
|
@ -0,0 +1 @@
|
|||
f[]
|
||||
Loading…
Add table
Add a link
Reference in a new issue