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
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
Hashes for symcollab-algebra-0.1.1a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf9e00d7e0a0a79ac9f7ded95f12ac689dab22c7be90603c10d177ee81faf05b |
|
MD5 | 7ddbfb8be97128ca29fa920fb245e29e |
|
BLAKE2b-256 | 3466f1a86be7898e0e298ed4bb60be4936f4b86640b932d7dce9b1c989617fe6 |
Hashes for symcollab_algebra-0.1.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d4a167ba3b3dbdca81c26047ca4b0241fa7d0d65cf19ad572b56bb047477705 |
|
MD5 | 66f6235e27bc807906560fa443f9dd5a |
|
BLAKE2b-256 | 6b46da543ef4bb54b8a660674f55297f63ae533d5fbc718ee0ede13cf19c7568 |