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 \pi H(y) = \operatorname{Im} \int_0^\infty dk \,\exp[-k^2/4+iky] \int_{-\infty}^\infty dx \, \exp[-(x+ik/2)^2] }
... is translated to the CAS output ...
Semantic latex: \cpi \HeavisideH@{y} = \imagpart \int_0^\infty \diff{k} \exp [- k^2 / 4 + \iunit ky] \int_{-\infty}^\infty \diff{x} \exp [-(x + \iunit k / 2)^2]
Confidence: 0.52589992733497
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) The input LaTeX is invalid: Limited expression in the end are illegal!
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \HeavisideH [\HeavisideH]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) The input LaTeX is invalid: Limited expression in the end are illegal!
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_9cf43d55a77787241fa6096cd9711453",
"formula" : "\\pi H(y) = \\operatorname{Im} \\int_0^\\infty dk \\exp[-k^2/4+iky] \\int_{-\\infty}^\\infty dx \\exp[-(x+ik/2)^2]",
"semanticFormula" : "\\cpi \\HeavisideH@{y} = \\imagpart \\int_0^\\infty \\diff{k} \\exp [- k^2 / 4 + \\iunit ky] \\int_{-\\infty}^\\infty \\diff{x} \\exp [-(x + \\iunit k / 2)^2]",
"confidence" : 0.5258999273349684,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: Limited expression in the end are illegal!"
}
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\HeavisideH [\\HeavisideH]"
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) The input LaTeX is invalid: Limited expression in the end are illegal!"
}
}
}
},
"positions" : [ ],
"includes" : [ "H(y)", "y", "\\pi H(y) = \\operatorname{Im} \\int_0^\\infty dk \\,\\exp[-k^2/4+iky] \\int_{-\\infty}^\\infty dx \\, \\exp[-(x+ik/2)^2]", "k", "x" ],
"isPartOf" : [ "\\pi H(y) = \\operatorname{Im} \\int_0^\\infty dk \\,\\exp[-k^2/4+iky] \\int_{-\\infty}^\\infty dx \\, \\exp[-(x+ik/2)^2]" ],
"definiens" : [ ]
}