Skip to content

Commit

Permalink
Update lagrange.rs
Browse files Browse the repository at this point in the history
Moved shared logic into smaller reusable functions (compute_lagrange_coeff, compute_trivial_lagrange_coeffs, compute_nontrivial_lagrange_coeffs).
	•	Simplified logic and added descriptive function/variable names.
	•	Removed redundant comments, making the code self-explanatory.
	•	Minimized redundant computations by factoring out shared components.
	•	Added explicit panic with a clear message for out-of-range scenarios.
	•	Modularized test logic into test_range_lagrange_coeff for reusability.
  • Loading branch information
tudorpintea999 authored Dec 14, 2024
1 parent 8e894dd commit 595d9ef
Showing 1 changed file with 150 additions and 193 deletions.
Loading

0 comments on commit 595d9ef

Please sign in to comment.