https://github.com/formulae-org/package-algebra-js
Algebra package for Fōrmulæ, in JavaScript
https://github.com/formulae-org/package-algebra-js
algebra algebra-software algebra-system
Last synced: 9 months ago
JSON representation
Algebra package for Fōrmulæ, in JavaScript
- Host: GitHub
- URL: https://github.com/formulae-org/package-algebra-js
- Owner: formulae-org
- License: agpl-3.0
- Created: 2024-02-26T04:03:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-24T04:37:07.000Z (over 1 year ago)
- Last Synced: 2025-04-02T23:32:10.960Z (over 1 year ago)
- Topics: algebra, algebra-software, algebra-system
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# package-algebra-js
Algebra package for the [Fōrmulæ](https://formulae.org) programming language.
Fōrmulæ is also a software framework for visualization, edition and manipulation of complex expressions, from many fields. The code for an specific field —i.e. arithmetics— is encapsulated in a single unit called a Fōrmulæ **package**.
This repository contains the source code for the **algebra package**. It contains functionality tu perform algebraic expression simplification.
Notice that creating a complete algebra system is not a trivial job. For now, this package includes a minimal set of operations, enought to perform operations with complex arithmetic.
The GitHub organization [formulae-org](https://github.com/formulae-org) encompasses the source code for the rest of packages, as well as the [web application](https://github.com/formulae-org/formulae-js).
### Simplifications ###
* Double negatives: $--x = x$
* Negative of an addition: $-(a + b +c) = -a - b - c$
* Negative of a multiplication: $-(abc) = (-1)abc$
* Addition of an addition: $x + (a + b + c) + y) = x + a + b + c + y$
* Multiplication of mutiplication: $x(abc)y = xabcy$
* Multiplication of negatives: $a(-b)c = (-1)abc$, $(-a)(-b) = ab$
* Multiplication distributes over addition: $a(x + y) = ax + ay$