Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cortex-js/compute-engine
An engine for symbolic manipulation and numeric evaluation of math formulas expressed with MathJSON
https://github.com/cortex-js/compute-engine
cas compute-engine format javascript json latex math math-json symbolic-computation technical-computing typescript
Last synced: about 2 months ago
JSON representation
An engine for symbolic manipulation and numeric evaluation of math formulas expressed with MathJSON
- Host: GitHub
- URL: https://github.com/cortex-js/compute-engine
- Owner: cortex-js
- License: mit
- Created: 2019-10-31T04:35:01.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-30T15:08:48.000Z (about 2 months ago)
- Last Synced: 2024-07-31T01:39:27.771Z (about 2 months ago)
- Topics: cas, compute-engine, format, javascript, json, latex, math, math-json, symbolic-computation, technical-computing, typescript
- Language: TypeScript
- Homepage: https://cortexjs.io
- Size: 14.7 MB
- Stars: 346
- Watchers: 10
- Forks: 41
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesomeLibrary - compute-engine - An engine for symbolic manipulation and numeric evaluation of math formulas expressed with MathJSON (语言资源库 / typescript)
README
Cortex Compute Engine
Symbolic manipulation and numeric evaluation of MathJSON expressions
[MathJSON](https://cortexjs.io/math-json/) is a lightweight mathematical
notation interchange format based on JSON.The Cortex Compute Engine can parse LaTeX to MathJSON, serialize MathJSON to
LaTeX, format, simplify and evaluate MathJSON expressions.Reference documentation and guides at
[cortexjs.io/compute-engine](https://cortexjs.io/compute-engine/).[![](https://dcbadge.vercel.app/api/server/yhmvVeJ4Hd)](https://discord.gg/yhmvVeJ4Hd)
## Using Compute Engine
```bash
$ npm install --save @cortex-js/compute-engine
``````js
import { parse, evaluate } from "@cortex-js/compute-engine";const expr = parse("2^{11}-1 \\in \\P");
console.log(expr);
// ➔ ["Element", ["Subtract", ["Power", 2, 11] , 1], "PrimeNumber"]console.log(evaluate(expr));
// ➔ "False"
```## More
- [Build](BUILD.md) instructions
## Related Projects
- MathJSON
- A lightweight mathematical notation interchange format
-
MathLive (on GitHub) - A Web Component for math input.
-
Cortex (on GitHub) - A programming language for scientific computing
## Support the Project
- 🌟 Star the GitHub repo (it really helps)
- 💬 Ask questions and give feedback on our
[Discussion Forum](https://cortexjs.io/forum/)
- 📨 Drop a line to [email protected]
## License
This project is licensed under the [MIT License](LICENSE).