Algebraic Calculation Environment for python
Project description
PROJECT
Acenv (Algebraic Calculation Environment)
A python 3 package that provides some tools to perform operations over complex polynomials objects, useful if you are working on a project that requires your program solving equations and polynomials expression parsing in general.
FEATURES
- Fully implemented in Python 3;
- No external dependencies;
- Class for representing real numbers in single objects, enabling operations with more complex numbers in an algebraic sense (the sum √2 + √2 returns 2√2, not the approximated float value 2.828...);
- Class for representing polynomials as single objects, enabling operations with algebraic entities containing one or more literal variables and real numbers;
- Polynomial factorization engine;
- Polynomial string parsers, which permits the user to simply type the readable string representation of the object, avoiding tedious object instantiation procedures;
- Algebraic expression parser, which takes a string representing an expression, simplifies it and can return both the resulting polynomial and the factorized form.
PREREQUISITES AND INSTALLATION GUIDE
With the library running without any external dependency, there is no need for you to install any other code than the one provided here. So, to install the library, it is sufficient to use the 'pip' command in terminal:
pip install acenv
DOCUMENTATION
The complete documentation should have been downloaded together with the rest of the package
HOW TO USE
Just import the components you need:
from acenv import Ex
and start creating the objects you intend to use
expression = Ex('x^2+4(1-x)') print(expression.value.numerator) print(expression.reduced)
and the output is
'+4-4x^(1)+1x^(2)' [['+2-1x^(1)', '+2-1x^(1)'], ['+1']]
For more checking the documentation is highly encouraged
NOTES
The project is still in its early stages of development, and it is born as a school project of mine for my ICT class. A lot of work and changes have been done since then, but there are still a lot of thing than can be hugely improved, so every feedback and bug report is widely appreciated.
LICENSE
MIT license, see LICENSE.txt that should have been downloaded with the package or simply go to https://opensource.org/licenses/MIT.
CONTACT ME
For any feedback, bug report or problems, you can contact me at:
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
File details
Details for the file acenv-0.1.4.tar.gz
.
File metadata
- Download URL: acenv-0.1.4.tar.gz
- Upload date:
- Size: 46.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07e680d6b650ac51ab1083ad07d107996ff16cd6a42130d17c09af63e1d9d1e1 |
|
MD5 | 5d21e8cbbbaa67207f0809a78a74c3c2 |
|
BLAKE2b-256 | d8b60454d025ae165d58ab04f7d5d662f2187d23397bf04207ec9cae8a9c1380 |