Import exactly the files of the teapot-2.3.0 distribution
This commit is contained in:
parent
360b88936b
commit
f8a60447d6
68 changed files with 20367 additions and 0 deletions
3
examples/asqrt.README
Normal file
3
examples/asqrt.README
Normal file
|
@ -0,0 +1,3 @@
|
|||
This sheet calculates the square root of x automatically, as soon as
|
||||
you enter a number in cell X. The calculation will be iterated until
|
||||
the square of the square root is as close as 0.1.
|
BIN
examples/asqrt.tp
Normal file
BIN
examples/asqrt.tp
Normal file
Binary file not shown.
BIN
examples/blink.tp
Normal file
BIN
examples/blink.tp
Normal file
Binary file not shown.
3
examples/counter.README
Normal file
3
examples/counter.README
Normal file
|
@ -0,0 +1,3 @@
|
|||
This sheet shows how to use clock() to model a counter which
|
||||
automatically counts up to 1000 once the sheet gets clocked with
|
||||
control-s.
|
BIN
examples/counter.tp
Normal file
BIN
examples/counter.tp
Normal file
Binary file not shown.
16
examples/graphtest.sh
Executable file
16
examples/graphtest.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
( echo This is the same data, once as a pie graph and once as a box graph.
|
||||
echo .PS
|
||||
../graph -w 2 <<eof
|
||||
"a" 1 1
|
||||
"b" 2.5
|
||||
"c" 4
|
||||
eof
|
||||
../graph -n -b -w 2 <<eof
|
||||
"a" 1
|
||||
"b" 2.5
|
||||
"c" 4
|
||||
eof
|
||||
echo with .w at last [].e
|
||||
echo .PE ) | groff -Tps -p -mm >graphtest.ps
|
4
examples/life.README
Normal file
4
examples/life.README
Normal file
|
@ -0,0 +1,4 @@
|
|||
This is a sheet which contains the well known game of life. Load it and
|
||||
clock the sheet with control-s a few times, and you will see the glider
|
||||
moving. Layer 0 contains the grid and layer 1 contains some help
|
||||
formulas.
|
BIN
examples/life.tp
Normal file
BIN
examples/life.tp
Normal file
Binary file not shown.
6
examples/load_save_time.README
Normal file
6
examples/load_save_time.README
Normal file
|
@ -0,0 +1,6 @@
|
|||
This sheet demonstrates the use of the time functions strftime and
|
||||
strptime.
|
||||
The associated shell script shows how to use teapot in batch mode,
|
||||
with the definitions and output formulas in level 0, and variable data
|
||||
loaded to level 1.
|
||||
|
12
examples/load_save_time.sh
Executable file
12
examples/load_save_time.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
echo 11.9.2001,2.2.2002 >load_save_time.txt
|
||||
teapot -b load_save_time.tp<<EOF
|
||||
goto &(0,0,1)
|
||||
load-csv load_save_time.txt
|
||||
from &(0,1,0)
|
||||
to &(0,1,0)
|
||||
save-csv load_save_result.txt
|
||||
EOF
|
||||
rm -f load_save_time.txt
|
||||
cat load_save_result.txt
|
||||
rm -f load_save_result.txt
|
BIN
examples/load_save_time.tp
Normal file
BIN
examples/load_save_time.tp
Normal file
Binary file not shown.
3
examples/sqrt.README
Normal file
3
examples/sqrt.README
Normal file
|
@ -0,0 +1,3 @@
|
|||
This sheet calculates the square root of x if you clock it a few times
|
||||
with control-s. It is a nice introductional example of how to use
|
||||
clocked expressions.
|
BIN
examples/sqrt.tp
Normal file
BIN
examples/sqrt.tp
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue