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 \begin{pmatrix} j \\ m \quad m' \end{pmatrix} := \sqrt{2 j + 1} \begin{pmatrix} j & 0 & j \\ m & 0 & m' \end{pmatrix} = (-1)^{j - m'} \delta_{m, -m'}. }
... is translated to the CAS output ...
Semantic latex: \begin{pmatrix} j \\ m \quad m' \end{pmatrix} : = \sqrt{2 j + 1} \Wignerthreejsym{j}{0}{j}{m}{0}{m'} =(- 1)^{j - m'} \delta_{m, -m'}
Confidence: 0.67814962762282
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) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix
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
Is part of
Complete translation information:
{
"id" : "FORMULA_28af5ac54eefff5c1ec2a3add3ca42bd",
"formula" : "\\begin{pmatrix}\n j \\\\\n m \\quad m'\n\\end{pmatrix}\n:= \\sqrt{2 j + 1}\n\\begin{pmatrix}\n j & 0 & j \\\\\n m & 0 & m'\n\\end{pmatrix}\n= (-1)^{j - m'} \\delta_{m, -m'}",
"semanticFormula" : "\\begin{pmatrix}\n j \\\\\n m \\quad m'\n\\end{pmatrix} : = \\sqrt{2 j + 1} \\Wignerthreejsym{j}{0}{j}{m}{0}{m'} =(- 1)^{j - m'} \\delta_{m, -m'}",
"confidence" : 0.6781496276228178,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
}
},
"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) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
}
},
"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: Reached unknown or not yet supported expression tag: matrix"
}
},
"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" : [ "\\begin{pmatrix} j \\\\ m \\quad m'\\end{pmatrix}:= \\sqrt{2 j + 1}\\begin{pmatrix} j & 0 & j \\\\ m & 0 & m'\\end{pmatrix}= (-1)^{j - m'} \\delta_{m, -m'}", "j", "m" ],
"isPartOf" : [ "\\begin{pmatrix} j \\\\ m \\quad m'\\end{pmatrix}:= \\sqrt{2 j + 1}\\begin{pmatrix} j & 0 & j \\\\ m & 0 & m'\\end{pmatrix}= (-1)^{j - m'} \\delta_{m, -m'}" ],
"definiens" : [ ]
}