viktorstrate / algebra-latex

Parse and calculate latex formatted math
https://www.npmjs.com/package/algebra-latex
MIT License
28 stars 9 forks source link

Processing Integrals and Derivate #18

Open Hammaad-M opened 1 year ago

Hammaad-M commented 1 year ago

What should I pass into the parseMath function to get back the latex of an integral?

const integral = new AlgebraLatex().parseMath("\\\\int dx").toLatex();
console.log(integral); // should output: \int dx

The above code fails with the error: Error at line: 1 col: 1, Unknown symbol: \

Any help would be much appreciated. Thank you!