21 lines
369 B
Bash
21 lines
369 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
trap 'exit 130' INT
|
||
|
|
||
|
wordlength=30
|
||
|
sdenom=100
|
||
|
sstart=1
|
||
|
send=100
|
||
|
qdenom=100
|
||
|
qstart=1
|
||
|
qend=100 # 1/sqrt(2) = 0.7071...
|
||
|
|
||
|
words="$(./billiard_words $wordlength | awk '{print $1}')"
|
||
|
|
||
|
for s in $(seq $sstart $send); do
|
||
|
for q in $(seq $qstart $qend); do
|
||
|
echo -n "$s/$sdenom $q/$qdenom "
|
||
|
MAXIMUM=only ./special_element $s/$sdenom $q/$qdenom $words
|
||
|
done
|
||
|
done
|