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 \frac{\left({\color{red}\vec x} - \vec x_1\right)*\left({\color{red}\vec x} - \vec x_2\right)} {\det\left({\color{red}\vec x} - \vec x_1,{\color{red}\vec x} - \vec x_2\right)} = \frac{\left(\vec x_3 - \vec x_1\right)*\left(\vec x_3 - \vec x_2\right)} {\det\left(\vec x_3 - \vec x_1, \vec x_3 - \vec x_2\right)}, }
... is translated to the CAS output ...
Semantic latex: \frac{({\color{red}\vec x} - \vec x_1\right)*\left({\color{red}\vec x} - \vec x_2\right)} {\det\left({\color{red}\vec x} - \vec x_1,{\color{red}\vec x} - \vec x_2\right)} = \frac{\left(\vec x_3 - \vec x_1\right)*\left(\vec x_3 - \vec x_2\right)} {\det\left(\vec x_3 - \vec x_1, \vec x_3 - \vec x_2\right)},} ) ({} ) ({} {} )} \frac{( ) ( ) ( )}
Confidence: 0
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \color [\color]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \color [\color]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \color [\color]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Complete translation information:
{
"id" : "FORMULA_8aa36668d6118b3dae95dbef82a5cee5",
"formula" : "\\frac{\\left({\\color{red}\\vec x} - \\vec x_1\\right)*\\left({\\color{red}\\vec x} - \\vec x_2\\right)}\n {\\det\\left({\\color{red}\\vec x} - \\vec x_1,{\\color{red}\\vec x} - \\vec x_2\\right)}\n = \\frac{\\left(\\vec x_3 - \\vec x_1\\right)*\\left(\\vec x_3 - \\vec x_2\\right)}\n {\\det\\left(\\vec x_3 - \\vec x_1, \\vec x_3 - \\vec x_2\\right)},",
"semanticFormula" : "\\frac{({\\color{red}\\vec x} - \\vec x_1\\right)*\\left({\\color{red}\\vec x} - \\vec x_2\\right)}\n {\\det\\left({\\color{red}\\vec x} - \\vec x_1,{\\color{red}\\vec x} - \\vec x_2\\right)}\n = \\frac{\\left(\\vec x_3 - \\vec x_1\\right)*\\left(\\vec x_3 - \\vec x_2\\right)}\n {\\det\\left(\\vec x_3 - \\vec x_1, \\vec x_3 - \\vec x_2\\right)},} ) ({} ) ({} {} )} \\frac{( ) ( ) ( )}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\color [\\color]"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \\color [\\color]"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\color [\\color]"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
}
},
"positions" : [ ],
"includes" : [ "*", "x_{2}", "x", "x_{1}" ],
"isPartOf" : [ ],
"definiens" : [ ]
}