triangle_reflection_complex/billiard_picture.sh

30 lines
654 B
Bash
Raw Normal View History

#!/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"
for s in $(seq $sstart $send); do
for q in $(seq $qstart $qend); do
2022-02-03 17:33:20 +00:00
i=0
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
done
done