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 \textrm{If}\quad {\mid}m{\mid} > \ell\,\quad\mathrm{then}\quad P_\ell^{m} = 0.\,}
... is translated to the CAS output ...
Semantic latex: \textrm{If} \quad{\mid} m{\mid} > \ell \quad \mathrm{then} \quad \assLegendreP[m]{\ell}@{z} = 0
Confidence: 0.44755409865129
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \textrm [\textrm]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \textrm [\textrm]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \textrm [\textrm]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_7386276401e2ab5ea0604a23a7cf4011",
"formula" : "\\textrm{If}\\quad {\\mid}m{\\mid} > \\ell\\quad\\mathrm{then}\\quad P_\\ell^{m} = 0",
"semanticFormula" : "\\textrm{If} \\quad{\\mid} m{\\mid} > \\ell \\quad \\mathrm{then} \\quad \\assLegendreP[m]{\\ell}@{z} = 0",
"confidence" : 0.44755409865129375,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\textrm [\\textrm]"
}
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \\textrm [\\textrm]"
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\textrm [\\textrm]"
}
}
}
},
"positions" : [ ],
"includes" : [ "m", "P", "\\textrm{If}\\quad {\\mid}m{\\mid} > \\ell\\,\\quad\\mathrm{then}\\quad P_\\ell^{m} = 0.", "P_{\\ell}^{m}" ],
"isPartOf" : [ "\\textrm{If}\\quad {\\mid}m{\\mid} > \\ell\\,\\quad\\mathrm{then}\\quad P_\\ell^{m} = 0." ],
"definiens" : [ ]
}