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 |j_1 m_1\rangle |j_2 m_2\rangle |j_4 m_4\rangle |j_5 m_5\rangle, \;\; m_1=-j_1,\ldots,j_1;\;\; m_2=-j_2,\ldots,j_2;\;\; m_4=-j_4,\ldots,j_4;\;\;m_5=-j_5,\ldots,j_5. }
... is translated to the CAS output ...
Semantic latex: \card{j_1 m_1 \rangle} j_2 m_2 \rangle \card{j_4 m_4 \rangle} j_5 m_5 \rangle , m_1 = - j_1 , \ldots , j_1 ; m_2 = - j_2 , \ldots , j_2 ; m_4 = - j_4 , \ldots , j_4 ; m_5 = - j_5 , \ldots , j_5
Confidence: 0.63752380952381
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \card [\card]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \card [\card]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) An unknown or missing element occurred: Empty math term tag
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_46b9e4a8d3f64d44bc83b0abf2665480",
"formula" : "|j_1 m_1\\rangle |j_2 m_2\\rangle |j_4 m_4\\rangle |j_5 m_5\\rangle, \n m_1=-j_1,\\ldots,j_1; m_2=-j_2,\\ldots,j_2; m_4=-j_4,\\ldots,j_4;m_5=-j_5,\\ldots,j_5",
"semanticFormula" : "\\card{j_1 m_1 \\rangle} j_2 m_2 \\rangle \\card{j_4 m_4 \\rangle} j_5 m_5 \\rangle , m_1 = - j_1 , \\ldots , j_1 ; m_2 = - j_2 , \\ldots , j_2 ; m_4 = - j_4 , \\ldots , j_4 ; m_5 = - j_5 , \\ldots , j_5",
"confidence" : 0.6375238095238095,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\card [\\card]"
}
},
"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) No translation possible for given token: Cannot extract information from feature set: \\card [\\card]"
}
},
"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) An unknown or missing element occurred: Empty math term tag"
}
},
"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" : [ "j", "m", "_{4}", "|j_1 m_1\\rangle |j_2 m_2\\rangle |j_4 m_4\\rangle |j_5 m_5\\rangle, \\;\\; m_1=-j_1,\\ldots,j_1;\\;\\; m_2=-j_2,\\ldots,j_2;\\;\\; m_4=-j_4,\\ldots,j_4;\\;\\;m_5=-j_5,\\ldots,j_5" ],
"isPartOf" : [ "|j_1 m_1\\rangle |j_2 m_2\\rangle |j_4 m_4\\rangle |j_5 m_5\\rangle, \\;\\; m_1=-j_1,\\ldots,j_1;\\;\\; m_2=-j_2,\\ldots,j_2;\\;\\; m_4=-j_4,\\ldots,j_4;\\;\\;m_5=-j_5,\\ldots,j_5" ],
"definiens" : [ ]
}