Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

View file

@ -8,13 +8,16 @@
100 100 moveto
%define the function recursively:
/fib { dup
3 lt
{ pop 1 }
{ dup 1 sub fib exch 2 sub fib add }
ifelse
} def
/fib {
dup 2 lt
{ }
{
dup 1 sub fib
exch 2 sub fib
add
} ifelse
} def
(Fib\() show n (....) cvs show (\)=) show n fib (.....) cvs show
(Fib\() show n (....) cvs show (\) = ) show n fib (.....) cvs show
showpage

View file

@ -0,0 +1,34 @@
%!PS
/Courier 16 selectfont
/fibonacci {
dup 2 lt
{ }
{
0 exch
1 exch
2 exch 1 exch {
pop
exch
1 index
add
} for
exch
pop
} ifelse
} def
/str 4 string def
/n 10 def
72 720 moveto
0 1 n {
fibonacci str cvs
str show
pop
} for
showpage