A mathematical and financial function curve utility library.
Project description
curvepy
A mathematical and financial function curve utility library for Python.
Installation
With poetry:
poetry add curvepy
Or with pip:
pip3 install curvepy
Usage
Have a look at the documentation.
Basic usage:
# Create a line
from curvepy import Line
line = Line(const=1, slope=2)
assert line.y(0) == 1
assert line.y(1) == 3
# Function arithmetic
line2 = Line(const=-1, slope=-2)
line_sum = line1 + line2
assert line_sum.y(0) == 0
assert line_sum.y(1) == 0
Development
Updating Documentation
The module pdoc3 is used to automatically generate documentation. To update the documentation:
- Install
pdoc3
if needed withpip3 install pdoc3
. - Navigate to project root and install dependencies:
poetry install
. - Generate documetation files with:
pdoc3 -o docs --html curvepy
. - The new files will be in
docs/curvepy
. Move them todocs/
and replace existing files.
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
curvepy-0.1.0.tar.gz
(34.8 kB
view hashes)
Built Distribution
curvepy-0.1.0-py3-none-any.whl
(44.7 kB
view hashes)