Skip to content

Commit d8e3ee8

Browse files
committed
Better default for nth_poly
1 parent 06b7658 commit d8e3ee8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

coloraide/algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _solve_nth_poly(coef: VectorLike, maxiter: int = 50, rtol: float = RTOL, ato
440440
roots = [] # type: Vector
441441
while len(coef) > 4:
442442
root, status = solve_newton(
443-
1,
443+
0.5,
444444
lambda x, coef=coef: sum([c * x ** i for i, c in enumerate(coef[::-1], 0)]),
445445
lambda x, coef=coef: sum([i * c * x ** (i - 1) for i, c in enumerate(coef[-2::-1], 1)]),
446446
maxiter=maxiter,

0 commit comments

Comments
 (0)