#!/bin/sh -f

make hw2.3
for N in 2 4 7 13; do
    (hw2.3 $N < ../hw2.3.dat | gpl -p -P -x x -y y -h "N = $N" >hw2.3.N=$N.ps) \
	2> hw2.3.coeffs.N=$N.dat
    ps2pdf hw2.3.N=$N.ps hw2.3.N=$N.pdf
    /bin/rm -f hw2.3.N=$N.ps
    echo N = $N, coefficients in hw2.3.N=$N.dat, plot in hw2.3.N=$N.pdf
done


