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} \frac{\pi}{2} - \operatorname{Si}(x) = -\operatorname{si}(x) &=& f(x) \cos(x) + g(x) \sin(x)~, \qquad \text{ and } \\ \operatorname{Ci}(x) &=& f(x) \sin(x) - g(x) \cos(x)~. \\ \end{array} }
... is translated to the CAS output ...
Semantic latex: \begin{array}{column-style}\frac{\cpi}{2} - \operatorname{Si}(x) = - \operatorname{si}(x) = \auxFresnelf@{x} \cos(x) + \auxFresnelg@{x} \sin(x) , \qquad and \auxFresnelf@{} \auxFresnelg@{}\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_cf27150a5407bfe3316e74e401db335f",
"formula" : "\\begin{array}{rcl}\n\\frac{\\pi}{2} - \\operatorname{Si}(x) = -\\operatorname{si}(x) &=& f(x) \\cos(x) + g(x) \\sin(x)~, \\qquad \\text{ and } \\\\\n\\operatorname{Ci}(x) &=& f(x) \\sin(x) - g(x) \\cos(x)~. \\\\\n\\end{array}",
"semanticFormula" : "\\begin{array}{column-style}\\frac{\\cpi}{2} - \\operatorname{Si}(x) = - \\operatorname{si}(x) = \\auxFresnelf@{x} \\cos(x) + \\auxFresnelg@{x} \\sin(x) , \\qquad and \\auxFresnelf@{} \\auxFresnelg@{}\\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(x)", "Si", "Ci", "f(x)", "x", "Si(x)", "g(x)" ],
"isPartOf" : [ ],
"definiens" : [ ]
}