Skip to main content

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:

vigano02aceproject@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acenv-0.1.4.tar.gz (46.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page