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 \sum_{j_3 m_3} (2 j_3 + 1) \begin{pmatrix} j_1 & j_2 & j_3\\ m_1 & m_2 & m_3 \end{pmatrix} \begin{pmatrix} j_1 & j_2 & j_3\\ m_1' & m_2' & m_3 \end{pmatrix} = \delta_{m_1, m_1'} \delta_{m_2, m_2'}. }
... is translated to the CAS output ...
Semantic latex: \sum_{j_3 m_3}(2 j_3 + 1) \Wignerthreejsym{j_1}{j_2}{j_3}{m_1}{m_2}{m_3} \Wignerthreejsym{j_1}{j_2}{j_3}{m_1'}{m_2'}{m_3} = \delta_{m_1, m_1'} \delta_{m_2, m_2'}
Confidence: 0.66574040393935
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) The input LaTeX is invalid: Primes can only be translated behind semantic macros (differentiation primes) but not in other places.
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \Wignerthreejsym [\Wignerthreejsym]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \Wignerthreejsym [\Wignerthreejsym]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_16d838543449847b0b471234f95f2c49",
"formula" : "\\sum_{j_3 m_3} (2 j_3 + 1)\n\\begin{pmatrix}\n j_1 & j_2 & j_3\\\\\n m_1 & m_2 & m_3\n\\end{pmatrix}\n\\begin{pmatrix}\n j_1 & j_2 & j_3\\\\\n m_1' & m_2' & m_3\n\\end{pmatrix}\n= \\delta_{m_1, m_1'} \\delta_{m_2, m_2'}",
"semanticFormula" : "\\sum_{j_3 m_3}(2 j_3 + 1) \\Wignerthreejsym{j_1}{j_2}{j_3}{m_1}{m_2}{m_3} \\Wignerthreejsym{j_1}{j_2}{j_3}{m_1'}{m_2'}{m_3} = \\delta_{m_1, m_1'} \\delta_{m_2, m_2'}",
"confidence" : 0.6657404039393544,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: Primes can only be translated behind semantic macros (differentiation primes) but not in other places."
}
},
"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: \\Wignerthreejsym [\\Wignerthreejsym]"
}
},
"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) No translation possible for given token: Cannot extract information from feature set: \\Wignerthreejsym [\\Wignerthreejsym]"
}
},
"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_{2}", "j_{3}", "j_{1}", "m_{3}", "\\sum_{j_3 m_3} (2 j_3 + 1)\\begin{pmatrix} j_1 & j_2 & j_3\\\\ m_1 & m_2 & m_3\\end{pmatrix}\\begin{pmatrix} j_1 & j_2 & j_3\\\\ m_1' & m_2' & m_3\\end{pmatrix}= \\delta_{m_1, m_1'} \\delta_{m_2, m_2'}", "j", "m_{2}", "m_{1}", "m" ],
"isPartOf" : [ "\\sum_{j_3 m_3} (2 j_3 + 1)\\begin{pmatrix} j_1 & j_2 & j_3\\\\ m_1 & m_2 & m_3\\end{pmatrix}\\begin{pmatrix} j_1 & j_2 & j_3\\\\ m_1' & m_2' & m_3\\end{pmatrix}= \\delta_{m_1, m_1'} \\delta_{m_2, m_2'}" ],
"definiens" : [ ]
}