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 \langle j_1 \, m_1 \, j_2 \, m_2 | j_3 \, m_3 \rangle = (-1)^{-j_1 + j_2 - m_3} \sqrt{2 j_3 + 1} \begin{pmatrix} j_1 & j_2 & j_3 \\ m_1 & m_2 & -m_3 \end{pmatrix}. }
... is translated to the CAS output ...
Semantic latex: \langle j_1 m_1 j_2 m_2|j_3 m_3 \rangle =(- 1)^{-j_1 + j_2 - m_3} \sqrt{2 j_3 + 1} \Wignerthreejsym{j_1}{j_2}{j_3}{m_1}{m_2}{-m_3}
Confidence: 0.66574040393935
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) An unknown or missing element occurred: Empty math term tag
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) An unknown or missing element occurred: Empty math term tag
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_2b3837e9a725b40c06b7e6aa89599e0a",
"formula" : "\\langle j_1 m_1 j_2 m_2 | j_3 m_3 \\rangle\n = (-1)^{-j_1 + j_2 - m_3} \\sqrt{2 j_3 + 1}\n \\begin{pmatrix}\n j_1 & j_2 & j_3 \\\\\n m_1 & m_2 & -m_3\n \\end{pmatrix}",
"semanticFormula" : "\\langle j_1 m_1 j_2 m_2|j_3 m_3 \\rangle =(- 1)^{-j_1 + j_2 - m_3} \\sqrt{2 j_3 + 1} \\Wignerthreejsym{j_1}{j_2}{j_3}{m_1}{m_2}{-m_3}",
"confidence" : 0.6657404039393544,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) 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" : [ ]
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) 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" : [ ]
}
},
"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_{2}", "j_{3}", "j_{1}", "\\langle j_1 \\, m_1 \\, j_2 \\, m_2 | j_3 \\, m_3 \\rangle = (-1)^{-j_1 + j_2 - m_3} \\sqrt{2 j_3 + 1} \\begin{pmatrix} j_1 & j_2 & j_3 \\\\ m_1 & m_2 & -m_3 \\end{pmatrix}", "m_{3}", "j", "m_{2}", "m_{1}", "m" ],
"isPartOf" : [ "\\langle j_1 \\, m_1 \\, j_2 \\, m_2 | j_3 \\, m_3 \\rangle = (-1)^{-j_1 + j_2 - m_3} \\sqrt{2 j_3 + 1} \\begin{pmatrix} j_1 & j_2 & j_3 \\\\ m_1 & m_2 & -m_3 \\end{pmatrix}" ],
"definiens" : [ ]
}