"Liam E. Gumley" wrote: > Try this instead: > > nx = 1000 ; number of values required What I meant to say was nx = 401 but the rest of my post still applies. Cheers, Liam.