From 7e9efcd2e4446f6c51f457640d1a34f52d4b1ab3 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 24 Jul 2019 13:45:58 +0200 Subject: correct polynomial order for gauss --- run.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'run.sh') diff --git a/run.sh b/run.sh index ca72d9c..848ea90 100755 --- a/run.sh +++ b/run.sh @@ -41,10 +41,7 @@ IEND="1" SUBINTERVALS="1 4 16 64 128" -valid_poly_orders() { - if [ "$1" = newton-cotes ]; then seq 0 2; fi - if [ "$1" = gauss ]; then seq 1 3; fi -} +VALID_POLY_ORDERS="0 1 2" echo "\ # results of numerical integration of three different functions @@ -59,7 +56,7 @@ for FUNC in $FUNCTIONS; do for TYPE in $QUADRATURE_TYPES; do for N in $SUBINTERVALS; do - for P in `valid_poly_orders $TYPE`; do + for P in $VALID_POLY_ORDERS; do printf "%5s %12s %10s %12s " $FUNC $TYPE $P $N $COMMAND $TYPE $FUNC $IBEG $IEND $P $N done -- cgit v1.2.3