LaTeX to CAS translator
Jump to navigation
Jump to search
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 \mathbf{j}_5}
... is translated to the CAS output ...
Semantic latex: \mathbf{j}_5
Confidence: 0
Mathematica
Translation: Subscript[j, 5]
Information
Sub Equations
- Subscript[j, 5]
Free variables
- Subscript[j, 5]
Tests
Symbolic
Numeric
SymPy
Translation: Symbol('{j}_{5}')
Information
Sub Equations
- Symbol('{j}_{5}')
Free variables
- Symbol('{j}_{5}')
Tests
Symbolic
Numeric
Maple
Translation: j[5]
Information
Sub Equations
- j[5]
Free variables
- j[5]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- notation
- technique of that article
- total angular momentum state
- angular momentum vector
Complete translation information:
{
"id" : "FORMULA_8cb633ec1d8e9a7db3e22e41595a6c90",
"formula" : "\\mathbf{j}_5",
"semanticFormula" : "\\mathbf{j}_5",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "Subscript[j, 5]",
"translationInformation" : {
"subEquations" : [ "Subscript[j, 5]" ],
"freeVariables" : [ "Subscript[j, 5]" ]
},
"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" : "Symbol('{j}_{5}')",
"translationInformation" : {
"subEquations" : [ "Symbol('{j}_{5}')" ],
"freeVariables" : [ "Symbol('{j}_{5}')" ]
},
"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" : "j[5]",
"translationInformation" : {
"subEquations" : [ "j[5]" ],
"freeVariables" : [ "j[5]" ]
},
"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" : 2,
"word" : 28
}, {
"section" : 1,
"sentence" : 3,
"word" : 14
} ],
"includes" : [ "j" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "notation",
"score" : 0.5988174995334326
}, {
"definition" : "technique of that article",
"score" : 0.5500952380952381
}, {
"definition" : "total angular momentum state",
"score" : 0.5049074255814494
}, {
"definition" : "angular momentum vector",
"score" : 0.4145803640193895
} ]
}