01-17-2007 09:43 AM
01-18-2007 07:32 AM
01-19-2007 08:30 PM
01-20-2007 07:40 AM
I'm not sure why you explicitly assign the coefficient values to db_arrM[] in sci_interpolate(), but you have made a mistake with the sign of the fourth coefficient db_arrM[3].
If you comment out the lines:
//db_arrM[0] = -0.27;
//db_arrM[1] = 2.807;
//db_arrM[2] = -0.52;
//db_arrM[3] = -0.02;
then the second graph has a typical cubic shape that is a reasonable match to your orignal curve (see attached screenshot).
01-20-2007 12:12 PM
01-20-2007 05:11 PM