Skip to main content

A basic cubic equation solver

Project description

cardano-method

release

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


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)

Uploaded Source

Built Distribution

cardano_method-1.2.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page