Task 1 and 2 are done!
This commit is contained in:
parent
cdc405551d
commit
a39f0f19e3
20 changed files with 587 additions and 0 deletions
18
2025.05.02/tests/2nd_must_find_test.sh
Executable file
18
2025.05.02/tests/2nd_must_find_test.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue