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}(2K) = \operatorname{Ec}(0) = 0,\;\; \operatorname{Es}(2K) = \operatorname{Es}(0) = 0, }
... is translated to the CAS output ...
Semantic latex: \operatorname{Ec}(2K) = \operatorname{Ec}(0) = 0, \operatorname{Es}(2K) = \operatorname{Es}(0) = 0
Confidence: 0
Mathematica
Translation: Ec[2*K] == Ec[0] == 0 Es[2*K] == Es[0] == 0
Information
Sub Equations
- Ec[2*K] = Ec[0]
- 0
Es[2*K] = Es[0]
Free variables
- K
Symbol info
- Was interpreted as a function call because of a leading \operatorname.
- Was interpreted as a function call because of a leading \operatorname.
Tests
Symbolic
Numeric
SymPy
Translation: Ec(2*K) == Ec(0) == 0 Es(2*K) == Es(0) == 0
Information
Sub Equations
- Ec(2*K) = Ec(0)
- 0
Es(2*K) = Es(0)
Free variables
- K
Symbol info
- Was interpreted as a function call because of a leading \operatorname.
- Was interpreted as a function call because of a leading \operatorname.
Tests
Symbolic
Numeric
Maple
Translation: Ec(2*K) = Ec(0) = 0; Es(2*K) = Es(0) = 0
Information
Sub Equations
- Ec(2*K) = Ec(0)
- 0; Es(2*K) = Es(0)
Free variables
- K
Symbol info
- Was interpreted as a function call because of a leading \operatorname.
- Was interpreted as a function call because of a leading \operatorname.
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_7cf93451d6659c197e67822036c57edc",
"formula" : "\\operatorname{Ec}(2K) = \\operatorname{Ec}(0) = 0, \\operatorname{Es}(2K) = \\operatorname{Es}(0) = 0",
"semanticFormula" : "\\operatorname{Ec}(2K) = \\operatorname{Ec}(0) = 0, \\operatorname{Es}(2K) = \\operatorname{Es}(0) = 0",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "Ec[2*K] == Ec[0] == 0\n Es[2*K] == Es[0] == 0",
"translationInformation" : {
"subEquations" : [ "Ec[2*K] = Ec[0]", "0\n Es[2*K] = Es[0]" ],
"freeVariables" : [ "K" ],
"tokenTranslations" : {
"Ec" : "Was interpreted as a function call because of a leading \\operatorname.",
"Es" : "Was interpreted as a function call because of a leading \\operatorname."
}
}
},
"SymPy" : {
"translation" : "Ec(2*K) == Ec(0) == 0\n Es(2*K) == Es(0) == 0",
"translationInformation" : {
"subEquations" : [ "Ec(2*K) = Ec(0)", "0\n Es(2*K) = Es(0)" ],
"freeVariables" : [ "K" ],
"tokenTranslations" : {
"Ec" : "Was interpreted as a function call because of a leading \\operatorname.",
"Es" : "Was interpreted as a function call because of a leading \\operatorname."
}
}
},
"Maple" : {
"translation" : "Ec(2*K) = Ec(0) = 0; Es(2*K) = Es(0) = 0",
"translationInformation" : {
"subEquations" : [ "Ec(2*K) = Ec(0)", "0; Es(2*K) = Es(0)" ],
"freeVariables" : [ "K" ],
"tokenTranslations" : {
"Ec" : "Was interpreted as a function call because of a leading \\operatorname.",
"Es" : "Was interpreted as a function call because of a leading \\operatorname."
}
}
}
},
"positions" : [ ],
"includes" : [ "\\operatorname{Ec}", "\\operatorname{Ec}(2K) = \\operatorname{Ec}(0) = 0,\\;\\; \\operatorname{Es}(2K) = \\operatorname{Es}(0) = 0", "\\operatorname{Es}" ],
"isPartOf" : [ "\\operatorname{Ec}(2K) = \\operatorname{Ec}(0) = 0,\\;\\; \\operatorname{Es}(2K) = \\operatorname{Es}(0) = 0" ],
"definiens" : [ ]
}