Skip to main content

pyculas

Installation Instructions

use pip or pip3 to install the library.

pip install pyculas

Note:

Currently this library support only algebraic expressions. Soon we will update for trigonometric, logarithmic expressions , etc.

Usage

This class takes a list of terms in a polynomial expression

Importing

from pyculas import Expression

Examples of usage:

If you have 4x^3 - 2x + 6, then create the object as follows -

A = Expression.algebraic("4x^3 - 2x + 6")

Differentiation

1.If only final expression required

Q. 2x^2+2

A = Expression.algebraic("2x^2 + 2")
print(A.differentiate())

Output:

('4.000x', None)

2.To get value at a point

Q. Find the differentiation of 2x^2+2 at x=3.

A = Expression.algebraic("2x^2 + 2")
print(A.differentiate(value=3,level=1))

Output:

('4.000x', 8.0)

Here value means at which point you want to differentiate and level means the nth derivative.

Integration

1.If only final expression required

Q. 2x^2+2

A = Expression.algebraic("2x^2 + 2")
print(A.integrate())

Output:

('0.667x^3.000 + 2.0x + c', None)

2.To evaluate when limits are given

Q. 2x^2+2

A = Expression.algebraic("2x^2 + 2")
print(A.integrate(upper_limit=4 , lower_limit=2))

Output:

('0.667x^3.000 + 2.0x + c', 41.352)

Metadata

Release files for pyculas 2.0

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

Source distribution (sdist)

Source distribution for pyculas 2.0
File Size Uploaded
pyculas-2.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyculas 2.0
File Interpreter ABI Platform
pyculas-2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / pyculas-2.0.tar.gz

Download URL pyculas-2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
754484e5fbf28299e3be2fc6a01adfe014280e00b607ac3db821f17c31ec8fa4
BLAKE2b-256 checksum
How to use checksums
0e8797ccfdfaf5e6a1f81733670686d8aeb5ed474df7eb3789d5d5ec6da3ead9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

Release files / pyculas-2.0-py3-none-any.whl

Download URL pyculas-2.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
951ec3f24a8dfe52117fda7a25c2f3b72fac6f428273116acef6e69bf160e4a8
BLAKE2b-256 checksum
How to use checksums
45b8155c283ef96249ba5384388270c546e2ba9e31695c83074dc3cc48c153dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

2.0 This release

2 release files

1.0.6

2 release files

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