Task 1 and 2 are done!

This commit is contained in:
AZEN-SGG 2025-05-06 00:00:35 +03:00
parent cdc405551d
commit a39f0f19e3
20 changed files with 587 additions and 0 deletions

View file

@ -0,0 +1,18 @@
script_name="$(basename "$0")"
iter="1000"
mkdir -p tests
if [ "$#" -ne 2 ]; then
echo "The number of parameters is less than 2"
exit 1
fi
make
for (( k = 3 ; k < 7; k++ )); do
echo "------- K = $k -------"
for (( a = -100 ; a < 100 ; a++ )); do
echo "k = $k x_0 = "$(echo "$a / 10" | bc -l)" Iter = $iter ---"
./a0$1.out "$(echo "$a / 10" | bc -l)" 1e-16 $iter $k
done
done >$(pwd)/tests/out_$script_name.log 2>$(pwd)/tests/err_$script_name.log