calculas python library
Project description
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.
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
Built Distribution
File details
Details for the file pyculas-1.0.6.tar.gz
.
File metadata
- Download URL: pyculas-1.0.6.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
88bce8994e66b36d8ba3d54b2f7c8953885f9ebdce13eb4e1bdd61b10a416cb7
|
|
MD5 |
2cf0ba97f3095eb8de3186dbcf9c91fe
|
|
BLAKE2b-256 |
ea1395ffbca73e5e14a6a639088cf5806541e11595cf2755c8f2f0f6458d0997
|
File details
Details for the file pyculas-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: pyculas-1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
51516eaf3eca8c5a49f7bfdd487f431015f5742fdd6be56b3d18a30fe803b19e
|
|
MD5 |
ffbcb5b3748f50ddcd15c907bd0c0c52
|
|
BLAKE2b-256 |
93ab201d984faede3649793cebf456936e6c674e970c4d0d9411774452524820
|