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.1.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for cardano_method-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68169be296586e5e3ae2d19698874c43563c745dd3abbaa2dfa990b1f355398 |
|
MD5 | 32d8717262721dba1a924590c5592663 |
|
BLAKE2b-256 | c4be0038b59a3b26c244aa6378db5e46f9847c5d23f56cbb6d4ba58a1999bae0 |