repo.or.cz
/
factor
/
jcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git]
/
extra
/
benchmark
/
fib3
/
fib3.factor
blob
13eaef8e0cd5e387e50cef8c1b24f14176f49806
1
USING: math kernel debugger ;
2
IN: benchmark.fib3
3
4
: fib ( m -- n )
5
dup 1 <= [ drop 1 ] [ dup 1 - fib swap 2 - fib + ] if ;
6
7
: fib-main ( -- ) 34 fib 9227465 assert= ;
8
9
MAIN: fib-main