Unsmooth spline

Hello Colleagues,
Something strange happens nears the edge of my TSpline3 function. I have a smooth, differentiable function everywhere except just before the last data point where there is a strange discontinuity.
I have attached my code. Can anyone identify the problem and how to avoid it?

Regards,
Ricardo


min_version.C (5.1 KB)


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.24/06
Platform: Linux
Compiler: Not Provided


The “x_C6” values must be sorted.

   Double_t x_C6[pts] = {-1.4343, -0.999988, -0.172143};
   Double_t y_C6[pts] = {178804., 191276., 205230.};
1 Like

Thanks @Wile_E_Coyote. That did the trick.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.