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")

This method differentiates a polynomial expression at a given value and outputs the final expression.

Output:

('12x^2 - 2' , None)

1.If only final expression required

Q. 2x^2+2

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

Output:

('4x' , 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:

('4x' , 12)

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

Release files for pyculas 1.0.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 pyculas 1.0.6
File Size Uploaded
pyculas-1.0.6.tar.gz 3.4 kB Details

Built distribution (wheel)

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

Total release size: 8.2 kB

Release files / pyculas-1.0.6.tar.gz

Download URL pyculas-1.0.6.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88bce8994e66b36d8ba3d54b2f7c8953885f9ebdce13eb4e1bdd61b10a416cb7
BLAKE2b-256 checksum
How to use checksums
ea1395ffbca73e5e14a6a639088cf5806541e11595cf2755c8f2f0f6458d0997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

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

Download URL pyculas-1.0.6-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51516eaf3eca8c5a49f7bfdd487f431015f5742fdd6be56b3d18a30fe803b19e
BLAKE2b-256 checksum
How to use checksums
93ab201d984faede3649793cebf456936e6c674e970c4d0d9411774452524820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

Release history Release notifications | RSS feed

2.0

2 release files

This release

1.0.6 This release

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