This commit is contained in:
Ingy döt Net 2013-04-10 21:29:02 -07:00
parent 764da6cbbb
commit db842d013d
19005 changed files with 197040 additions and 7 deletions

View file

@ -0,0 +1,3 @@
: factorial ( n -- n! ) [1,b] product ;
CONSTANT: 10-factorial $[ 10 factorial ]

View file

@ -0,0 +1 @@
pf10=: smoutput bind (!10)

View 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"_)

View file

@ -0,0 +1,2 @@
pf10 ''
3628800

View file

@ -0,0 +1 @@
f = Compile[{}, 10!]