derivative-lib


Namederivative-lib JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/Mun-Robbery
SummaryThis module destined to calculation of derivatives using numerical methods
upload_time2023-12-10 23:20:26
maintainer
docs_urlNone
authorantrisole
requires_python>=3.6
license
keywords numerical derivative
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Derivative Library

This code is a library for calculating derived functions.

## Installation

To install the library, use pip:

    pip install derivative_lib

## Usage

To use the library, import the `Derivative` class from the library:

    from derivative_lib import Derivative

Then you can create an instance of the `Derivative` class by passing the function you want to differentiate as an argument:

    python def func(x):
    return x**2
    derivative = Derivative(func)

## Methods

### tailor_app

Calculates the derivative of the function at the point `x0` using the Taylor method.

Usage example:

    result = derivative.tailor_app(2)

### polinom_app

Calculates the derivative of the function at the point `x0` using the polynomial method.

Usage example:

    result = derivative.polinom_app(2)

### second_derivative

Calculates the second derivative of the function at the point `x0`.

Usage example:

    result = derivative.second_derivative(2)

### threepoint_pattern(x0, second_deriv=False)

Calculates the first or second derivative of a function at the point `x0` using the three-point method.

Usage example:

    result = derivative.threepoint_pattern(2, second_deriv=True)

## Exception handling

If the function was set using a grid, the methods `tailor_app`, `polinom_app` and `threepoint_pattern` will throw an exception. If an error occurred while using the function, the methods will also throw an exception.

## License

This library is available under the MIT license.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Mun-Robbery",
    "name": "derivative-lib",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "numerical derivative",
    "author": "antrisole",
    "author_email": "gleb.zar.03@mail.ru",
    "download_url": "https://files.pythonhosted.org/packages/08/14/aadc80ff9f8b764ea77c30ffb2d21f9988bafb7a32ae78b823cc556b7110/derivative_lib-0.2.tar.gz",
    "platform": null,
    "description": "# Derivative Library\r\n\r\nThis code is a library for calculating derived functions.\r\n\r\n## Installation\r\n\r\nTo install the library, use pip:\r\n\r\n    pip install derivative_lib\r\n\r\n## Usage\r\n\r\nTo use the library, import the `Derivative` class from the library:\r\n\r\n    from derivative_lib import Derivative\r\n\r\nThen you can create an instance of the `Derivative` class by passing the function you want to differentiate as an argument:\r\n\r\n    python def func(x):\r\n    return x**2\r\n    derivative = Derivative(func)\r\n\r\n## Methods\r\n\r\n### tailor_app\r\n\r\nCalculates the derivative of the function at the point `x0` using the Taylor method.\r\n\r\nUsage example:\r\n\r\n    result = derivative.tailor_app(2)\r\n\r\n### polinom_app\r\n\r\nCalculates the derivative of the function at the point `x0` using the polynomial method.\r\n\r\nUsage example:\r\n\r\n    result = derivative.polinom_app(2)\r\n\r\n### second_derivative\r\n\r\nCalculates the second derivative of the function at the point `x0`.\r\n\r\nUsage example:\r\n\r\n    result = derivative.second_derivative(2)\r\n\r\n### threepoint_pattern(x0, second_deriv=False)\r\n\r\nCalculates the first or second derivative of a function at the point `x0` using the three-point method.\r\n\r\nUsage example:\r\n\r\n    result = derivative.threepoint_pattern(2, second_deriv=True)\r\n\r\n## Exception handling\r\n\r\nIf the function was set using a grid, the methods `tailor_app`, `polinom_app` and `threepoint_pattern` will throw an exception. If an error occurred while using the function, the methods will also throw an exception.\r\n\r\n## License\r\n\r\nThis library is available under the MIT license.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "This module destined to calculation of derivatives using numerical methods",
    "version": "0.2",
    "project_urls": {
        "GitHub": "https://github.com/Mun-Robbery",
        "Homepage": "https://github.com/Mun-Robbery"
    },
    "split_keywords": [
        "numerical",
        "derivative"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "96d18dce9926721527f32e9400239f478b886b1522d305a939a5df95d8b26eeb",
                "md5": "f38b6ebaee36133eabbcec0f5ec9eaef",
                "sha256": "47a43052efe3a92559da1a6321c5186b1ff66897620bdc10c4c5ea7e6e55be3d"
            },
            "downloads": -1,
            "filename": "derivative_lib-0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f38b6ebaee36133eabbcec0f5ec9eaef",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2713,
            "upload_time": "2023-12-10T23:20:24",
            "upload_time_iso_8601": "2023-12-10T23:20:24.945704Z",
            "url": "https://files.pythonhosted.org/packages/96/d1/8dce9926721527f32e9400239f478b886b1522d305a939a5df95d8b26eeb/derivative_lib-0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0814aadc80ff9f8b764ea77c30ffb2d21f9988bafb7a32ae78b823cc556b7110",
                "md5": "5840cbbd78f9b38390cfe2a766390bba",
                "sha256": "4ffb2aa2f0190e86dabe35d1fbfcc1c36d1e035aa69102c2383ff63f244bf1fe"
            },
            "downloads": -1,
            "filename": "derivative_lib-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "5840cbbd78f9b38390cfe2a766390bba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2430,
            "upload_time": "2023-12-10T23:20:26",
            "upload_time_iso_8601": "2023-12-10T23:20:26.739711Z",
            "url": "https://files.pythonhosted.org/packages/08/14/aadc80ff9f8b764ea77c30ffb2d21f9988bafb7a32ae78b823cc556b7110/derivative_lib-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-10 23:20:26",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "derivative-lib"
}
        
Elapsed time: 0.14766s