Skip to content

Fix polynom-roots.cpp - #238

Open
indy256 wants to merge 1 commit into
mainfrom
fix-polynom-roots
Open

Fix polynom-roots.cpp#238
indy256 wants to merge 1 commit into
mainfrom
fix-polynom-roots

Conversation

@indy256

@indy256 indy256 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

Laguerre's method requires H = G^2 - p''(x)/p(x), but the code computed
G^2 - p''(x) - p(x). A stress test against polynomials with known random
complex roots (degrees 2-10) failed in 202/300 trials before the fix and
0/300 after.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant