2022-01-31 01:09:56 +00:00
|
|
|
#!/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...
|
|
|
|
|
2022-02-03 17:33:20 +00:00
|
|
|
#words="$(./billiard_words $wordlength | awk '{print $1}')"
|
|
|
|
#words="cbabcabacabcacbcab cabacabcacbcabcbab cabcacbcabcbabcaba"
|
|
|
|
words="abcb acbc baca"
|
2022-01-31 01:09:56 +00:00
|
|
|
|
|
|
|
for s in $(seq $sstart $send); do
|
|
|
|
for q in $(seq $qstart $qend); do
|
2022-02-03 17:33:20 +00:00
|
|
|
i=0
|
2022-01-31 01:09:56 +00:00
|
|
|
echo -n "$s/$sdenom $q/$qdenom "
|
2022-02-03 17:33:20 +00:00
|
|
|
# MAXIMUM=only ./special_element $s/$sdenom $q/$qdenom $words
|
|
|
|
# MAXIMUM=no ./special_element $s/$sdenom $q/$qdenom abcb
|
|
|
|
MAXIMUM=no ./special_element $s/$sdenom $q/$qdenom $words | while read line; do
|
|
|
|
echo -n "$line "
|
|
|
|
((i=i+1))
|
|
|
|
done
|
|
|
|
echo
|
2022-01-31 01:09:56 +00:00
|
|
|
done
|
|
|
|
done
|