Back to functions

nerdamer.convertFromLaTeX


convertFromLaTeX

Attempts to import a LaTeX string.

Usage: nerdamer.convertFromLaTeX(TeX)


Parameters

String TeX The expression being converted

Returns

String

EXAMPLES:
var x = nerdamer.convertFromLaTeX('-2 \\sin{\\left( {{x}^{2}}-1\\right) }-\\frac{\cos{\\left( {{x}^{2}}-1\\right) }}{{{x}^{2}}}');
console.log(x.toString());
x = nerdamer.convertFromLaTeX('\\frac{18 \\cdot x^{5}-4 \\cdot x^{3}+1}{a \\cdot b \\cdot c^{x}+4}-\\frac{a \\cdot b \\cdot c^{x} \\cdot \\mathrm{log}\\left(c\\right) \\cdot \\left(3 \\cdot x^{6}-x^{4}+x\\right)}{\\left(a \\cdot b \\cdot c^{x}+4\\right)^{2}}')
console.log(x.toString())
OUTPUT:
Back to functions