Finding Zeros in 3D Data Set with GSL

  • Thread starter Thread starter r4nd0m
  • Start date Start date
  • Tags Tags
    Data Set
Click For Summary
A user is seeking an effective root-finding method for a dataset of 3D points (x, y, z) where z = f(x, y), specifically looking for the zeros of the function f. They express interest in interpolation methods to accurately locate these zeros, rather than simply identifying where z equals zero or where sign changes occur. The discussion highlights that the choice of method depends on the assumptions about the data, suggesting options like linear, quadratic, or cubic fits. A recommendation is made for CurveExpert, a free software that performs these tasks effectively. Additionally, a resource on using the GNU Scientific Library (GSL) for interpolation is provided, which ranks highly in search results for GSL interpolation.
r4nd0m
Messages
96
Reaction score
1
Hi,
does anyone know of some nice root-finding method (preferable GSL :-)) for a data set - i.e. I have a set of 3D data (x,y,z) where z = f(x,y,) and I want to know where the zeros of f are. I guess, I could write it myself with some interpolation method, but just in case someone knows...
 
Technology news on Phys.org
If you have the function only in terms of triples, then the best you can do is search for:
1. Values of z which are actually equal to zero.
2. Sign changes from one value of z to the next.
 
yeah, but I'd like to know where exactly the points are, so the method I'm searching for should be using some kind of interpolation and then find the zeros.
 
Ah. Well this depends on the assumptions you make about the data. You could do a linear (or quadratic, or cubic, or some other polynomial) local fit/spline, or you could choose any of a number of other types of fits.

There's a free ("as in beer") program out there called CurveExpert that does this reasonably well, if you'd like to try it.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 1 ·
Replies
1
Views
11K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K