Blame src/math/gen/gensanity.sh

nsz ddfb9f
#!/bin/sh
nsz ddfb9f
nsz ddfb9f
D=../sanity
nsz ddfb9f
nsz ddfb9f
sed 's/^T(//;s/,//;s/)//' functions.h | while read N T
nsz ddfb9f
do
nsz ddfb9f
	case $T in
nsz cb9f87
	'') continue ;;
nsz cb9f87
nsz ddfb9f
	d_*|f_*|l_*) ./gen $N >$D/$N.h <
nsz ddfb9f
-8.06684839057968126823036836721962107
nsz ddfb9f
+4.34523984933830528860918339265097582
nsz ddfb9f
-8.38143342755524846875570469976848365
nsz ddfb9f
-6.53167358191348375502677177380274565
nsz ddfb9f
+9.26705696697258528046907106996633473
nsz ddfb9f
+0.66198589809950443806520229507072615
nsz ddfb9f
-0.40660392238535529519351490505650392
nsz ddfb9f
+0.56175974622072409170769641066459813
nsz ddfb9f
+0.77415229659130372834006997382367211
nsz ddfb9f
-0.67876370263940246316802166606111153
nsz ddfb9f
EOF
nsz ddfb9f
	;;
nsz ddfb9f
	di_*|fi_*|li_*) ./gen $N >$D/$N.h <
nsz ddfb9f
-8.06684839057968126823036836721962107 -2
nsz ddfb9f
+4.34523984933830528860918339265097582 -1
nsz ddfb9f
-8.38143342755524846875570469976848365 0
nsz ddfb9f
-6.53167358191348375502677177380274565 1
nsz ddfb9f
+9.26705696697258528046907106996633473 2
nsz ddfb9f
+0.66198589809950443806520229507072615 3
nsz ddfb9f
-0.40660392238535529519351490505650392 4
nsz ddfb9f
+0.56175974622072409170769641066459813 5
nsz ddfb9f
+0.77415229659130372834006997382367211 6
nsz ddfb9f
-0.67876370263940246316802166606111153 7
nsz ddfb9f
EOF
nsz ddfb9f
	;;
nsz 29d670
	dd_*|ff_*|[dfl]l_*) ./gen $N >$D/$N.h <
nsz ddfb9f
-8.06684839057968126823036836721962107 +4.53566256067686864057537788388811764
nsz ddfb9f
+4.34523984933830528860918339265097582 -8.88799136300345123622768770110757083
nsz ddfb9f
-8.38143342755524846875570469976848365 -2.76360733737958805493258686740202557
nsz ddfb9f
-6.53167358191348375502677177380274565 +4.56753527684274348416184388263831508
nsz ddfb9f
+9.26705696697258528046907106996633473 +4.81139208435979589730560859417420750
nsz ddfb9f
-6.45004555606023597579444426311945845 +0.66207179233767389593411946503559251
nsz ddfb9f
+7.85889025304169636815211127446301636 +0.05215452675006224789817853073306709
nsz ddfb9f
-0.79205451198489594412029014134600873 +7.67640268511754002832536318951411755
nsz ddfb9f
+0.61570267319792408792325107549103713 +2.01190257903248027376896111888376742
nsz ddfb9f
-0.55875868236091523814033056701077708 +0.03223983060263803856752696457418850
nsz ddfb9f
EOF
nsz ddfb9f
	;;
nsz 588927
	ddd_*|fff_*|lll_*) ./gen $N >$D/$N.h <
nsz 588927
-8.06684839057968126823036836721962107 +4.53566256067686864057537788388811764 +0.66207179233767389593411946503559251
nsz 588927
+4.34523984933830528860918339265097582 -8.88799136300345123622768770110757083 +0.05215452675006224789817853073306709
nsz 588927
-8.38143342755524846875570469976848365 -2.76360733737958805493258686740202557 +7.67640268511754002832536318951411755
nsz 588927
-6.53167358191348375502677177380274565 +4.56753527684274348416184388263831508 -0.79205451198489594412029014134600873
nsz 588927
+9.26705696697258528046907106996633473 +4.81139208435979589730560859417420750 -0.55875868236091523814033056701077708
nsz 588927
EOF
nsz 588927
	;;
nsz ddfb9f
	*) echo "bad type: $T"
nsz ddfb9f
	;;
nsz ddfb9f
	esac
nsz ddfb9f
done
nsz ddfb9f