A basic cubic equation solver
Project description
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)
# [(-2+0j), (-0.5+1.322875j), (-0.5-1.322875j)]
Note that the answers
attribute contains a list of complex
objects representing the zeroes of the cubic equation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cardano-method-1.2.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for cardano_method-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b5021e63e0e8c7feb1202bc7482a7271d4da57655b82c382ce81aa423cebf29 |
|
MD5 | 93a66bad12e3e694eadf2aaa68e5c7bf |
|
BLAKE2b-256 | 96178332a63ae4137375af70dc84a1a0b4c2dd5f2b47123e629843bdb3e8a866 |