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 \operatorname{Ec}^{q_0}_n, \operatorname{Es}^{q_0+1}_n, \operatorname{Ec}^{q_0-1}_n, \operatorname{Es}^{q_0}_n}
... is translated to the CAS output ...
Semantic latex: \operatorname{Ec}_n^{q_0} , \operatorname{Es}_n^{q_0+1} , \operatorname{Ec}_n^{q_0-1} , \operatorname{Es}_n^{q_0}
Confidence: 0
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) The input LaTeX is invalid: Unable to retrieve argument of the function (Subscript[Es, n])^(Subscript[q, 0])
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) The input LaTeX is invalid: Unable to retrieve argument of the function (Symbol('{Es}_{n}'))**(Symbol('{q}_{0}'))
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) The input LaTeX is invalid: Unable to retrieve argument of the function (Es[n])^(q[0])
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- boundary condition
- ellipsoidal wave
- period
- prime meaning
- quarter period
Complete translation information:
{
"id" : "FORMULA_4bbb85e37fc69eff23bc2b919e91bb5e",
"formula" : "\\operatorname{Ec}^{q_0}_n, \\operatorname{Es}^{q_0+1}_n, \\operatorname{Ec}^{q_0-1}_n, \\operatorname{Es}^{q_0}_n",
"semanticFormula" : "\\operatorname{Ec}_n^{q_0} , \\operatorname{Es}_n^{q_0+1} , \\operatorname{Ec}_n^{q_0-1} , \\operatorname{Es}_n^{q_0}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: Unable to retrieve argument of the function (Subscript[Es, n])^(Subscript[q, 0])"
}
},
"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) The input LaTeX is invalid: Unable to retrieve argument of the function (Symbol('{Es}_{n}'))**(Symbol('{q}_{0}'))"
}
},
"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) The input LaTeX is invalid: Unable to retrieve argument of the function (Es[n])^(q[0])"
}
},
"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" : 2,
"sentence" : 3,
"word" : 39
} ],
"includes" : [ "n", "q", "\\operatorname{Ec}", "\\operatorname{Es}", "q_0" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "boundary condition",
"score" : 0.6687181434333315
}, {
"definition" : "ellipsoidal wave",
"score" : 0.6687181434333315
}, {
"definition" : "period",
"score" : 0.6687181434333315
}, {
"definition" : "prime meaning",
"score" : 0.6687181434333315
}, {
"definition" : "quarter period",
"score" : 0.6687181434333315
} ]
}