2022-01-31 01:09:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
trap 'exit 130' INT
|
|
|
|
|
|
|
|
wordlength=30
|
2022-04-11 16:22:13 +00:00
|
|
|
sdenom=1
|
2022-01-31 01:09:56 +00:00
|
|
|
sstart=1
|
2022-04-11 16:22:13 +00:00
|
|
|
send=1
|
2022-01-31 01:09:56 +00:00
|
|
|
qdenom=100
|
|
|
|
qstart=1
|
2022-04-11 16:22:13 +00:00
|
|
|
qend=200 # 1/sqrt(2) = 0.7071...
|
2022-01-31 01:09:56 +00:00
|
|
|
|
2022-04-11 16:22:13 +00:00
|
|
|
words="$(./billiard_words $wordlength | awk '{print $1}')"
|
2022-02-03 17:33:20 +00:00
|
|
|
#words="cbabcabacabcacbcab cabacabcacbcabcbab cabcacbcabcbabcaba"
|
2022-04-11 16:22:13 +00:00
|
|
|
#words="abcabc abcb cbabcacbcacbab"
|
|
|
|
#words="abcabc abcbcabcbc"
|
|
|
|
#words="abcabc bcbab bcbabcac"
|
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-04-11 16:22:13 +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
|