Proof-of-concept tiny package like mathjs with mutable "typed functions" and module-based dependency tracking/"tree-shaking"
Glen Whitney
e5ec1083e3
Plus a test example where an instance is initialized to have only addition, and then that instance is extended to complex numbers, at which point it has number and complex addition but not negation or subtraction (at all). |
||
---|---|---|
complex | ||
generic | ||
number | ||
test | ||
.gitignore | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
picomath.js | ||
picomathInstance.js | ||
poortf.js | ||
README.md |
Proof of concept for a JavaScript Computer Algebra System
The system will be an object whose properties names are the operator names and whose property values are constant mutable function objects that can have new behaviors added to them.