LaTeX to CAS translator
This mockup demonstrates the concept of TeX to Computer Algebra System (CAS) conversion.
The demo-application converts LaTeX functions which directly translate to CAS counterparts.
Functions without explicit CAS support are available for translation via a DRMF package (under development).
The following LaTeX input ...
{\displaystyle \begin{array}{rcl} f(x) &\equiv& \int_0^\infty \frac{\sin(t)}{t+x} \mathrm{d}t &=& \int_0^\infty \frac{e^{-x t}}{t^2 + 1} \mathrm{d}t &=& \quad \operatorname{Ci}(x) \sin(x) + \left[\frac{\pi}{2} - \operatorname{Si}(x) \right] \cos(x)~, \qquad \text{ and } \\ g(x) &\equiv& \int_0^\infty \frac{\cos(t)}{t+x} \mathrm{d}t &=& \int_0^\infty \frac{t e^{-x t}}{t^2 + 1} \mathrm{d}t &=& -\operatorname{Ci}(x) \cos(x) + \left[\frac{\pi}{2} - \operatorname{Si}(x) \right] \sin(x)~. \end{array} }
... is translated to the CAS output ...
Semantic latex: \begin{array}{column-style}\auxFresnelf@{x} \equiv \int_0^\infty \frac{\sin(t)}{t+x} \diff{t} = \int_0^\infty \frac{\expe^{-x t}}{t^2 + 1} \diff{t} = \quad \operatorname{Ci}(x) \sin(x) + [\frac{\cpi}{2} - \operatorname{Si}(x)] \cos(x) , \qquad and \auxFresnelg@{} {\diff{}} {\frac{\expe} \diff{}} [\frac{\cpi} ]\end{array}
Confidence: 0.65966666666667
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) An unknown or missing element occurred: Empty expression tag. Unable to translate:
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) An unknown or missing element occurred: Empty expression tag. Unable to translate:
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) An unknown or missing element occurred: Empty expression tag. Unable to translate:
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Complete translation information:
{
"id" : "FORMULA_f65e394e7309fd6c8687e09d1497d9de",
"formula" : "\\begin{array}{rcl}\nf(x) &\\equiv& \\int_0^\\infty \\frac{\\sin(t)}{t+x} \\mathrm{d}t &=& \\int_0^\\infty \\frac{e^{-x t}}{t^2 + 1} \\mathrm{d}t \n &=& \\quad \\operatorname{Ci}(x) \\sin(x) + \\left[\\frac{\\pi}{2} - \\operatorname{Si}(x) \\right] \\cos(x)~, \\qquad \\text{ and } \\\\\ng(x) &\\equiv& \\int_0^\\infty \\frac{\\cos(t)}{t+x} \\mathrm{d}t &=& \\int_0^\\infty \\frac{t e^{-x t}}{t^2 + 1} \\mathrm{d}t \n &=& -\\operatorname{Ci}(x) \\cos(x) + \\left[\\frac{\\pi}{2} - \\operatorname{Si}(x) \\right] \\sin(x)~.\n\\end{array}",
"semanticFormula" : "\\begin{array}{column-style}\\auxFresnelf@{x} \\equiv \\int_0^\\infty \\frac{\\sin(t)}{t+x} \\diff{t} = \\int_0^\\infty \\frac{\\expe^{-x t}}{t^2 + 1} \\diff{t} = \\quad \\operatorname{Ci}(x) \\sin(x) + [\\frac{\\cpi}{2} - \\operatorname{Si}(x)] \\cos(x) , \\qquad and \\auxFresnelg@{} {\\diff{}} {\\frac{\\expe} \\diff{}} [\\frac{\\cpi} ]\\end{array}",
"confidence" : 0.6596666666666666,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Empty expression tag. Unable to translate: "
}
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) An unknown or missing element occurred: Empty expression tag. Unable to translate: "
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) An unknown or missing element occurred: Empty expression tag. Unable to translate: "
}
}
}
},
"positions" : [ ],
"includes" : [ "\\pi", "Si", "Ci", "f(x)", "x", "Si(x)", "Ci(x)" ],
"isPartOf" : [ ],
"definiens" : [ ]
}