Catalog PyPI
PACKAGE EXPLORERView in registry

acenv

PyPI

Algebraic Calculation Environment for python

Versions collected1
Direct dependencies0From release 0.1.4
Last observed20 Oct, 18:09 UTC

README

Version 0.1.4 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.46 May 20200

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b00bfe460032786d1ebfcf815a595e2b153cba0088acc5f282616c22544a1e44