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.9742467369282
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
- Failed to parse (syntax error): {\displaystyle + 1}}
- Failed to parse (syntax error): {\displaystyle '} =(- 1)^}
- Failed to parse (syntax error): {\displaystyle = (-1)^}
Description
- j
- m
- pmatrix
- end
- TeX Source
- delta
- Formula
- Gold ID
- j - m
- link
- quad m
Complete translation information:
{
"id" : "FORMULA_3f987b881a59a03904ff9a79476faae0",
"formula" : "\\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'}",
"semanticFormula" : "\\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.974246736928205,
"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" : [ {
"section" : 1,
"sentence" : 0,
"word" : 8
} ],
"includes" : [ "+ 1}", "'} =(- 1)^", "= (-1)^" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "j",
"score" : 0.9227402107846149
}, {
"definition" : "m",
"score" : 0.9227402107846149
}, {
"definition" : "pmatrix",
"score" : 0.9227402107846149
}, {
"definition" : "end",
"score" : 0.8172610534710303
}, {
"definition" : "TeX Source",
"score" : 0.722
}, {
"definition" : "delta",
"score" : 0.6584038577190456
}, {
"definition" : "Formula",
"score" : 0.6584038577190456
}, {
"definition" : "Gold ID",
"score" : 0.6584038577190456
}, {
"definition" : "j - m",
"score" : 0.6584038577190456
}, {
"definition" : "link",
"score" : 0.6584038577190456
}, {
"definition" : "quad m",
"score" : 0.6584038577190456
} ]
}