This is a demo for hw6. Detailed instructions are given in the file pspline.demo.R. In this demo, we use the R package named "pspline". Descriptions for this package can be found in the R.html. hw6.tex and the plot6.ps files are the descriptions of hw 6. You can insert them into your LaTeX files for your convenience.