triangle_reflection_complex/billiard_picture.sh
2022-02-03 11:33:20 -06:00

30 lines
654 B
Bash
Executable File

#!/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}')"
#words="cbabcabacabcacbcab cabacabcacbcabcbab cabcacbcabcbabcaba"
words="abcb acbc baca"
for s in $(seq $sstart $send); do
for q in $(seq $qstart $qend); do
i=0
echo -n "$s/$sdenom $q/$qdenom "
# 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