Skip to main content
logo.png

Python Project curves

GitHubWorkflow Read the Docs GitHub GitHub release PyPI Version PyPI - Python Version PyPI Downloads

Introduction

To import the project simply type

>>> import curves

after installation.

The Curve class turns a function into an algebraic object which can handle operations like +, -, /, * as well es @.

>>> from curves import Curve

>>> eye = Curve()  # identity function
>>> eye(123.456)
123.456

>>> zero = Curve(0.0)
>>> zero(123.456)
0.0

>>> one = Curve(1.0)
>>> one(123.456)
1.0

>>> X = Curve('X')
>>> X
X

>>> p = 2 * X **2 + 3 * X + 1
>>> p
2 * X **2 + 3 * X + 1

>>> p(123.456)
30854.135872

>>> q = p(X - 1)
>>> q
(2 * X ** 2 + 3 * X + 1)(X - 1)

>>> q1 = p @ (X - 1)
>>> q1
(2 * X ** 2 + 3 * X + 1)(X - 1)

>>> q2 = 2 * (X - 1) ** 2 + 3 * (X - 1) + 1
>>> q2
2 * (X - 1) ** 2 + 3 * (X - 1) + 1

>>> q(123.456)
30359.311872

>>> q1(123.456)
30359.311872

>>> q2(123.456)
30359.311872

Documentation

More documentation available at https://curves.readthedocs.io

Install

The latest stable version can always be installed or updated via pip:

$ pip install curves

License

Code and documentation are available according to the license (see LICENSE file in repository).

Metadata

Release files for curves 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for curves 0.1.6
File Size Uploaded Provenance Actions
curves-0.1.6.tar.gz 20.7 kB Without provenance Details for curves-0.1.6.tar.gz

Release files / curves-0.1.6.tar.gz

Download URL curves-0.1.6.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
704064f488cabf33791de76bc43dd62c65fb3ea5447395e56e9434bbac00a3b5
BLAKE2b-256 checksum
How to use checksums
27115d200dc60e379d592644ee1191949f4f011499f79b7f5fd039418509f75f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.11

Security for curves 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page