curves


Namecurves JSON
Version 0.1.5 PyPI version JSON
download
home_pagehttps://github.com/sonntagsgesicht/curves
Summaryfunctional curve algebra (created by auxilium)
upload_time2024-10-27 16:48:55
maintainerNone
docs_urlNone
authorsonntagsgesicht
requires_pythonNone
licenseApache License 2.0
keywords
VCS
bugtrack_url
requirements auxilium matplotlib setuptools
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

.. image:: logo.png


Python Project *curves*
-----------------------


.. image:: https://github.com/sonntagsgesicht/curves/actions/workflows/python-package.yml/badge.svg
    :target: https://github.com/sonntagsgesicht/curves/actions/workflows/python-package.yml
    :alt: GitHubWorkflow

.. image:: https://img.shields.io/readthedocs/curves
   :target: http://curves.readthedocs.io
   :alt: Read the Docs

.. image:: https://img.shields.io/github/license/sonntagsgesicht/curves
   :target: https://github.com/sonntagsgesicht/curves/raw/master/LICENSE
   :alt: GitHub

.. image:: https://img.shields.io/github/release/sonntagsgesicht/curves?label=github
   :target: https://github.com/sonntagsgesicht/curves/releases
   :alt: GitHub release

.. image:: https://img.shields.io/pypi/v/curves
   :target: https://pypi.org/project/curves/
   :alt: PyPI Version

.. image:: https://img.shields.io/pypi/pyversions/curves
   :target: https://pypi.org/project/curves/
   :alt: PyPI - Python Version

.. image:: https://pepy.tech/badge/curves
   :target: https://pypi.org/project/curves/
   :alt: PyPI Downloads


Introduction
------------

To import the project simply type

.. code-block:: python

    >>> import curves

after installation.

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

.. code-block:: python

    >>> 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 <https://curves.readthedocs.io>`_


Install
-------

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

.. code-block:: bash

    $ pip install curves


License
-------

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sonntagsgesicht/curves",
    "name": "curves",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "sonntagsgesicht",
    "author_email": "sonntagsgesicht@icloud.com",
    "download_url": "https://files.pythonhosted.org/packages/a0/4a/345af6af3f116f0a2334223b8e321ba3dc943d3e479fcf7bd73380fd1c5e/curves-0.1.5.zip",
    "platform": "any",
    "description": "\n\n.. image:: logo.png\n\n\nPython Project *curves*\n-----------------------\n\n\n.. image:: https://github.com/sonntagsgesicht/curves/actions/workflows/python-package.yml/badge.svg\n    :target: https://github.com/sonntagsgesicht/curves/actions/workflows/python-package.yml\n    :alt: GitHubWorkflow\n\n.. image:: https://img.shields.io/readthedocs/curves\n   :target: http://curves.readthedocs.io\n   :alt: Read the Docs\n\n.. image:: https://img.shields.io/github/license/sonntagsgesicht/curves\n   :target: https://github.com/sonntagsgesicht/curves/raw/master/LICENSE\n   :alt: GitHub\n\n.. image:: https://img.shields.io/github/release/sonntagsgesicht/curves?label=github\n   :target: https://github.com/sonntagsgesicht/curves/releases\n   :alt: GitHub release\n\n.. image:: https://img.shields.io/pypi/v/curves\n   :target: https://pypi.org/project/curves/\n   :alt: PyPI Version\n\n.. image:: https://img.shields.io/pypi/pyversions/curves\n   :target: https://pypi.org/project/curves/\n   :alt: PyPI - Python Version\n\n.. image:: https://pepy.tech/badge/curves\n   :target: https://pypi.org/project/curves/\n   :alt: PyPI Downloads\n\n\nIntroduction\n------------\n\nTo import the project simply type\n\n.. code-block:: python\n\n    >>> import curves\n\nafter installation.\n\nThe **Curve** class turns a function into an algebraic object\nwhich can handle operations like +, -, /, * as well es @.\n\n.. code-block:: python\n\n    >>> from curves import Curve\n\n    >>> eye = Curve()  # identity function\n    >>> eye(123.456)\n    123.456\n\n    >>> zero = Curve(0.0)\n    >>> zero(123.456)\n    0.0\n\n    >>> one = Curve(1.0)\n    >>> one(123.456)\n    1.0\n\n    >>> X = Curve('X')\n    >>> X\n    X\n\n    >>> p = 2 * X **2 + 3 * X + 1\n    >>> p\n    2 * X **2 + 3 * X + 1\n\n    >>> p(123.456)\n    30854.135872\n\n    >>> q = p(X - 1)\n    >>> q\n    (2 * X ** 2 + 3 * X + 1)(X - 1)\n\n    >>> q1 = p @ (X - 1)\n    >>> q1\n    (2 * X ** 2 + 3 * X + 1)(X - 1)\n\n    >>> q2 = 2 * (X - 1) ** 2 + 3 * (X - 1) + 1\n    >>> q2\n    2 * (X - 1) ** 2 + 3 * (X - 1) + 1\n\n    >>> q(123.456)\n    30359.311872\n\n    >>> q1(123.456)\n    30359.311872\n\n    >>> q2(123.456)\n    30359.311872\n\n\nDocumentation\n-------------\n\nMore documentation available at\n`https://curves.readthedocs.io <https://curves.readthedocs.io>`_\n\n\nInstall\n-------\n\nThe latest stable version can always be installed or updated via pip:\n\n.. code-block:: bash\n\n    $ pip install curves\n\n\nLicense\n-------\n\nCode and documentation are available according to the license\n(see LICENSE file in repository).\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "functional curve algebra (created by auxilium)",
    "version": "0.1.5",
    "project_urls": {
        "Homepage": "https://github.com/sonntagsgesicht/curves"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a04a345af6af3f116f0a2334223b8e321ba3dc943d3e479fcf7bd73380fd1c5e",
                "md5": "f1dbe02c4af5b6378fe4ea334b533aa7",
                "sha256": "43901c7225dcdd293949a9561d4a64cfec3d7ca3d645ddd9b61d697edc3402fa"
            },
            "downloads": -1,
            "filename": "curves-0.1.5.zip",
            "has_sig": false,
            "md5_digest": "f1dbe02c4af5b6378fe4ea334b533aa7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 25121,
            "upload_time": "2024-10-27T16:48:55",
            "upload_time_iso_8601": "2024-10-27T16:48:55.874979Z",
            "url": "https://files.pythonhosted.org/packages/a0/4a/345af6af3f116f0a2334223b8e321ba3dc943d3e479fcf7bd73380fd1c5e/curves-0.1.5.zip",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-27 16:48:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sonntagsgesicht",
    "github_project": "curves",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "auxilium",
            "specs": []
        },
        {
            "name": "matplotlib",
            "specs": []
        },
        {
            "name": "setuptools",
            "specs": []
        }
    ],
    "lcname": "curves"
}
        
Elapsed time: 0.50395s