cardano-method
A fast, reliable Python library to solve cubic equations of all kinds. You can test out cardano-method
in your browser.
How It Works
cardano-method
implements Gerolamo Cardano's famous method of solving cubic equations - 'Cardano's Method'. Split amongst various stages of processing, this library mirrors the steps described in Cardano's Method.
Installation
$ pip install cardano-method
Usage
from cardano_method import CubicEquation
a = CubicEquation([1, 3, 4, 4])
print(a.answers)
Note that the answers
attribute contains a list of complex
objects representing the zeroes of the cubic equation.