# forum.alglib.net

ALGLIB forum
 It is currently Mon Aug 15, 2022 3:58 am

 All times are UTC

### Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

 Page 1 of 1 [ 1 post ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Find zero crossings of interpolant derivativesPosted: Mon Jun 18, 2012 4:11 pm

Joined: Mon Jun 18, 2012 3:32 pm
Posts: 1
Hello,

i'm currently trying to interpolate some measured data points via the package 'interpolation'.

Target is to find the turning points and the value of first derivate at those points. I wanted to try different types of interpolation, at least spline and polinomal and compare the results with each other and with some other metrics i got my hands on.

I started with the spline Interpolation:

The proceeded as followed:
1. built the spline and unpack the parameters.
2. then i iterate over all the intervalls:
-> find solution ("candidate") for the manually setup second derivate of the function = 0. (which i built within the loop by passing the unpacked parameters of the spline to a formula i set up by pen and paper differentiation)
-> check third derivate < 0 for only left -> right turning points (this step is optional and in fact only means to check the intervalls C3 Value for beeing smaller than zero)
-> check if the "candidate" is within the intervall borders and if yes, add to some output vector.

Now what i wondered about was that i had to built up the derivates manually to find that zero crossings.
all the ...diff... functions only give me the derivates values at specified points rather than i could let them output some zero crossings.

While the thing was quite easy to build manually with the unpacked parameters of cubic spline im now confronted with those parameters of barycentric model which is used in polynomialbuild().

Isn't it quite a common problem to find zero crossings in first to third derivates? Did i oversee the according package to easily find those points in the interpolated models?

Or is there an easier way of finding those points in the barycentric model as to build the derivates of those SUM formulas?

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 1 post ]

 All times are UTC

#### Who is online

Users browsing this forum: No registered users and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for: