Skip to main content

No project description provided

Project description

Algebra Library

A free algebra library that contains the necessary components to encode an equation.

It also includes a way to print the equation or turn it into a directed acyclic graph (DAG)

Classes Included

  • Constant
  • Variable
  • Function
  • FuncTerm
  • Equation

To clean up type annotations, I defined a Term to mean any of the above.

A FuncTerm is an instantiation of a function with terms as its arguments.

An equation takes two terms and sets them equal to each other.

Directed Acyclic Graph (DAG)

A DAG can be created from a term. What it generates resembles a tree. The "top" will be a function (for a non-trivial term) and each function points to its arguments. The "leaves" would be a constant or a variable.

For example, take the term f(g(x, a), g(x, a))


The function f has two arguments, both of which is g(x,a). Therefore, f points to g. Since both the arguments are g(x,a), we just have one node g that points to x and a.

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

symcollab-algebra-0.1.1.tar.gz (11.0 kB view hashes)

Uploaded source

Built Distribution

symcollab_algebra-0.1.1-py3-none-any.whl (12.5 kB view hashes)

Uploaded py3

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