feat(Function): Add __eq__ method and improve quadratic_solve stability #23

Merged
jono merged 1 commits from v0.6.2-dev into main 2025-11-02 16:53:38 +00:00
Owner

Implements two features for the Function class:

  1. Adds the __eq__ operator (==) to allow for logical comparison of two Function objects based on their coefficients.
  2. Replaces the standard quadratic formula with a numerically stable version in quadratic_solve to prevent "catastrophic cancellation" errors and improve accuracy.
Implements two features for the Function class: 1. Adds the `__eq__` operator (`==`) to allow for logical comparison of two Function objects based on their coefficients. 2. Replaces the standard quadratic formula with a numerically stable version in `quadratic_solve` to prevent "catastrophic cancellation" errors and improve accuracy.
jono added 1 commit 2025-11-02 16:52:11 +00:00
feat(Function): Add __eq__ method and improve quadratic_solve stability
All checks were successful
Run Python Tests / test (3.10) (pull_request) Successful in 13s
Run Python Tests / test (3.12) (pull_request) Successful in 12s
Run Python Tests / test (3.8) (pull_request) Successful in 14s
Publish Python Package to PyPI / deploy (push) Successful in 13s
94723dcb88
Implements two features for the Function class:

1.  Adds the `__eq__` operator (`==`) to allow for logical comparison of two Function objects based on their coefficients.
2.  Replaces the standard quadratic formula with a numerically stable version in `quadratic_solve` to prevent "catastrophic cancellation" errors and improve accuracy.
jono merged commit 94723dcb88 into main 2025-11-02 16:53:38 +00:00
jono deleted branch v0.6.2-dev 2025-11-02 16:53:38 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jono/PolySolve#23