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 details)
Built Distribution
File details
Details for the file cardano-method-1.2.0.tar.gz
.
File metadata
- Download URL: cardano-method-1.2.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23ece032ab1a1f411410096f66bda74bc3d30e314e23f82867ad99aaad42ca0b |
|
MD5 | 360958066f6cfb95d59c141c8f30bd81 |
|
BLAKE2b-256 | 20c019c0f76fa40582cfc764710d87449b99a0aa37a538b8660814d5b9ae8bd4 |
File details
Details for the file cardano_method-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: cardano_method-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b5021e63e0e8c7feb1202bc7482a7271d4da57655b82c382ce81aa423cebf29 |
|
MD5 | 93a66bad12e3e694eadf2aaa68e5c7bf |
|
BLAKE2b-256 | 96178332a63ae4137375af70dc84a1a0b4c2dd5f2b47123e629843bdb3e8a866 |