Hi, I have added Barton's code to the file. The new link is below, pwdefint is faster than integrate so if you are doing Fourier Series then you should probably use that function. http://home.comcast.net/~rvh2007/site/?/page/Pw.mac_2.2/ Rich