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 \Gamma(s) = \int_0^\infty t^{s-1}\,e^{-t}\,{\rm d}t = \lim_{x \rightarrow \infty} \gamma(s, x)}
... is translated to the CAS output ...
Semantic latex: \EulerGamma@{s} = \int_0^\infty t^{s-1} \expe^{-t}{\rm d} t = \lim_{x \rightarrow \infty} \incgamma@{s}{x}
Confidence: 0.60396154272934
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \rm [\rm]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \EulerGamma [\EulerGamma]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \rm [\rm]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_50c53f522e9cfb2611eb5594379d0d37",
"formula" : "\\Gamma(s) = \\int_0^\\infty t^{s-1}e^{-t}{\\rm d}t = \\lim_{x \\rightarrow \\infty} \\gamma(s, x)",
"semanticFormula" : "\\EulerGamma@{s} = \\int_0^\\infty t^{s-1} \\expe^{-t}{\\rm d} t = \\lim_{x \\rightarrow \\infty} \\incgamma@{s}{x}",
"confidence" : 0.6039615427293417,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\rm [\\rm]"
}
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\EulerGamma [\\EulerGamma]"
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\rm [\\rm]"
}
}
}
},
"positions" : [ ],
"includes" : [ "\\gamma(s, z)", "\\Gamma(s)", "\\gamma", "P(a,x)", "\\Gamma", "\\gamma(s,z)", "z^{s-1}e^{-z}", "\\gamma(a,x)", "Q(a,x)", "\\Gamma(s,x)", "x\\rightarrow \\infty", "\\Gamma(s) = \\int_0^{\\infty} t^{s-1}\\,e^{-t}\\,{\\rm d}t", "x^{n}e^{-x}", "x", "Q(s,\\lambda)", "\\Gamma(s) = \\int_0^\\infty t^{s-1}\\,e^{-t}\\,{\\rm d}t = \\lim_{x \\rightarrow \\infty} \\gamma(s, x)", "P(s,x)", "s)", "\\Gamma(a,x)", "\\gamma(u,v)", "s,\\gamma", "x \\rightarrow \\infty", "\\Gamma(s, z)", "\\gamma(s,x)", "s", "\\Gamma(z)", "s,z)", "\\Gamma (s,x)", "\\Gamma(s,z)", "e^{-x}" ],
"isPartOf" : [ "\\Gamma(s) = \\int_0^\\infty t^{s-1}\\,e^{-t}\\,{\\rm d}t = \\lim_{x \\rightarrow \\infty} \\gamma(s, x)" ],
"definiens" : [ ]
}