Skip to content

Conversation

@Keykyrios
Copy link

Adds an implementation of Neville's Algorithm for polynomial interpolation to the math package.

Details:

  • The function Neville takes slices of x and y coordinates and a target point, returning the interpolated value.
  • Includes robust error handling for empty slices, mismatched slice lengths, and duplicate x-coordinates (to prevent division by zero).
  • A comprehensive test suite in nevilles_test.go verifies correctness for various cases, including the new error conditions.
  • Follows all GoDoc and repository style guidelines.

Reference: https://en.wikipedia.org/wiki/Neville%27s_algorithm

@github-actions
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant