diff --git a/pyproject.toml b/pyproject.toml index a0db21b..cfed628 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] # --- Core Metadata --- name = "polysolve" -version = "0.6.0" +version = "0.6.1" authors = [ { name="Jonathan Rampersad", email="jonathan@jono-rams.work" }, ] diff --git a/src/polysolve/__init__.py b/src/polysolve/__init__.py index 19b7233..0f624a0 100644 --- a/src/polysolve/__init__.py +++ b/src/polysolve/__init__.py @@ -133,6 +133,15 @@ class GA_Options: raise ValueError( f"blend_alpha cannot be negative, but got {self.blend_alpha}" ) + if self.root_precision > 15: + warnings.warn( + f"root_precision={self.root_precision} is greater than 15. " + "This demands an accuracy that is likely impossible for standard " + "64-bit floats (float64), which are limited to 15-16 significant digits. " + "The solver may fail to find any roots.", + UserWarning, + stacklevel=2 + ) def _get_cauchy_bound(coeffs: np.ndarray) -> float: """