mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-14 05:44:36 +00:00
[PR #1505] feat(numerical_methods): Add Neville's algorithm for interpolation #2115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/1505
State: closed
Merged: No
Description of Change
This pull request introduces an implementation of Neville's Algorithm for polynomial interpolation in C. The file is located in the
numerical_methodsdirectory, as it's a specific numerical method for solving interpolation problems.The submission includes:
nevilles_algorithm.c) with manual memory management.tests()function that usesassert.hto verify the algorithm's correctness with linear, quadratic, and negative-valued test cases.Wikipedia Reference: https://en.wikipedia.org/wiki/Neville%27s_algorithm
Checklist
nevilles_algorithm.c)Notes: Adds a standard implementation of Neville's algorithm with self-contained tests.