You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is a longstanding issue, here is a unit test demonstrating it:
func testDegree5RealWorldIssue() {
// this case may return a non-root because Newton iteration
// does not converge
let polynomial = BernsteinPolynomial5(b0: -68686.64586343056,
b1: 102389.02112160496,
b2: -163207.59913132348,
b3: 177077.4933777841,
b4: -108411.70135107233,
b5: 57838.81668210728)
let roots = findDistinctRootsInUnitInterval(of: polynomial)
XCTAssertEqual(roots.count, 1)
XCTAssertEqual(roots[0], 0.44454, accuracy: 1.0e-5)
}
The text was updated successfully, but these errors were encountered:
this is a longstanding issue, here is a unit test demonstrating it:
The text was updated successfully, but these errors were encountered: