bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] bug in periodic csplines?


From: Brian Gough
Subject: Re: [Bug-gsl] bug in periodic csplines?
Date: Sat, 24 Dec 2005 17:38:18 +0000

Stefan Jahn writes:
 > i think i found a small bug in periodic cubic splines calculation.  for
 > the 3-point calculation you need to apply this patch:
 > 
 > cspline.c: cspline_init_periodic patch
 > 
 >     - const double h2 = xa[3] - xa[2];
 > 
 >     - g[1] = 3.0 * ((ya[1] - ya[2]) / h2 - (ya[2] - ya[1]) / h1);
 >     + g[1] = 3.0 * ((ya[1] - ya[2]) / h0 - (ya[2] - ya[1]) / h1);
 > 
 > can anyone verify that?  please answer privately as well, because i am
 > not subscribed to the list.

Thanks for the patch!  

I've verified the problem and that the patch corrected it.  I will
include it in the next release.  Sorry for the delay in replying.

-- 
best regards,

Brian Gough




reply via email to

[Prev in Thread] Current Thread [Next in Thread]