LaTeX to CAS translator
Jump to navigation
Jump to search
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 P_{4}^{-4}(x)=\begin{matrix}\frac{1}{40320}\end{matrix}P_{4}^{4}(x)}
... is translated to the CAS output ...
Semantic latex: \assLegendreP[-4]{4}@{x} = \begin{matrix}\frac{1}{40320}\end{matrix} \assLegendreP[4]{4}@{x}
Confidence: 0.77035532448677
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \assLegendreP [\assLegendreP]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- Legendre function
- negative value
Complete translation information:
{
"id" : "FORMULA_0fa7b7634c1c618c7bae39410456cc08",
"formula" : "P_{4}^{-4}(x)=\\begin{matrix}\\frac{1}{40320}\\end{matrix}P_{4}^{4}(x)",
"semanticFormula" : "\\assLegendreP[-4]{4}@{x} = \\begin{matrix}\\frac{1}{40320}\\end{matrix} \\assLegendreP[4]{4}@{x}",
"confidence" : 0.7703553244867746,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
}
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\assLegendreP [\\assLegendreP]"
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
}
}
}
},
"positions" : [ {
"section" : 7,
"sentence" : 0,
"word" : 33
} ],
"includes" : [ "P_{\\ell}^{m}", "P", "P_\\ell^{m}(x)", "P_\\lambda^{\\mu}(z)" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "Legendre function",
"score" : 0.6859086196238077
}, {
"definition" : "negative value",
"score" : 0.5988174995334326
} ]
}