All Projects → viktorstrate → Algebra Latex

viktorstrate / Algebra Latex

Licence: mit
Parse and calculate latex formatted math

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Algebra Latex

Angourimath
Open-source symbolic algebra library for C# and F#. One of the most powerful in .NET
Stars: ✭ 266 (+1230%)
Mutual labels:  latex, parse, math, algebra
Nerdamer
a symbolic math expression evaluator for javascript
Stars: ✭ 322 (+1510%)
Mutual labels:  latex, math, algebra
racket-cas
Simple computer algebra system
Stars: ✭ 58 (+190%)
Mutual labels:  algebra, math, cas
Latex.js
JavaScript LaTeX to HTML5 translator
Stars: ✭ 374 (+1770%)
Mutual labels:  latex, parser
Wpf Math
.NET library for rendering mathematical formulae using the LaTeX typsetting style, for the WPF framework
Stars: ✭ 339 (+1595%)
Mutual labels:  latex, math
React Katex
Display math in TeX with KaTeX and ReactJS
Stars: ✭ 345 (+1625%)
Mutual labels:  latex, math
Calculatex
in progress pretty printing calculator language
Stars: ✭ 302 (+1410%)
Mutual labels:  latex, math
Nom
Rust parser combinator framework
Stars: ✭ 5,987 (+29835%)
Mutual labels:  parser, parse
Fiduswriter
Fidus Writer is an online collaborative editor for academics.
Stars: ✭ 405 (+1925%)
Mutual labels:  latex, math
Remarkable
Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.
Stars: ✭ 5,252 (+26160%)
Mutual labels:  parser, parse
Algebrite
Computer Algebra System in Javascript (Coffeescript)
Stars: ✭ 800 (+3900%)
Mutual labels:  algebra, cas
Js Quantities
JavaScript library for quantity calculation and unit conversion
Stars: ✭ 335 (+1575%)
Mutual labels:  parser, parse
Expr Eval
Mathematical expression evaluator in JavaScript
Stars: ✭ 752 (+3660%)
Mutual labels:  parser, math
Librini
Rini is a tiny, non-libc dependant, .ini file parser programmed from scratch in C99.
Stars: ✭ 25 (+25%)
Mutual labels:  parser, parse
Newton Api
➗ A really micro micro-service for advanced math.
Stars: ✭ 358 (+1690%)
Mutual labels:  math, algebra
Algebraicengine Fraction
a calculating engine~
Stars: ✭ 311 (+1455%)
Mutual labels:  parser, math
Gap
Main development repository for GAP - Groups, Algorithms, Programming, a System for Computational Discrete Algebra
Stars: ✭ 447 (+2135%)
Mutual labels:  math, algebra
Hx Mathparser
Evaluates math expressions. Written in Haxe.
Stars: ✭ 7 (-65%)
Mutual labels:  parser, math
Grassmann.jl
⟨Leibniz-Grassmann-Clifford⟩ differential geometric algebra / multivector simplicial complex
Stars: ✭ 289 (+1345%)
Mutual labels:  math, algebra
Demoinfocs Golang
High performance CS:GO demo parser for Go (demoinfo)
Stars: ✭ 288 (+1340%)
Mutual labels:  parser, parse

algebra-latex

Build Status npm version

An npm module, with no dependencies, for parsing LaTeX math to a regular math string (ascii math), that can be parsed to other algebra or math libraries like algebrite and algebra.js

Example

const AlgebraLatex = require('algebra-latex')

// Parse from LaTeX ...
const latexInput = '\\frac{1}{\\sqrt{2}}\\cdot x=10'
const algebraObj = new AlgebraLatex().parseLatex(latexInput)

// ... or parse from regular math string
const mathInput = '1/sqrt(2)*x=10'
const algebraObj = new AlgebraLatex().parseMath(mathInput)

console.log(algebraObj.toMath()) // output: 1/sqrt(2)*x=10
console.log(algebraObj.toLatex()) // output: \frac{1}{\sqrt{2}}\cdot x=10

Parse to other libraries

Supported libraries

NOTE: The above libraries are optional, and have to be installed before use

continuing from example above

...

var algebraJS = require('algebra.js')
var algebrite = require('algebrite')
var coffeequate = require('coffeequate')

// For algebra.js
algebraObj.toAlgebra(algebraJS) // Will either return an algebra.js expression or equation

// For algebrite
algebraObject.toAlgebrite(algebrite)

// For coffequate
algebraObject.toCoffeequate(coffeequate)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].