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{align} H_0 (x\mid q) & = 1 \\ H_1 (x\mid q) & = 2x \\ H_2 (x\mid q) & = 4x^2 - (1-q) \\ H_3 (x\mid q) & = 8x^3 - 2x(2-q-q^2) \\ H_4 (x\mid q) & = 16x^4 - 4x^2(3-q-q^2-q^3) + (1-q-q^3+q^4) \end{align} }
... is translated to the CAS output ...
Semantic latex: \begin{align} H_0 (x\mid q) & = 1 \\ H_1 (x\mid q) & = 2x \\ H_2 (x\mid q) & = 4x^2 - (1-q) \\ H_3 (x\mid q) & = 8x^3 - 2x(2-q-q^2) \\ H_4 (x\mid q) & = 16x^4 - 4x^2(3-q-q^2-q^3) + (1-q-q^3+q^4) \end{align}
Confidence: 0
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) No translation possible for given token: Unknown relation. Cannot translate: \mid [\mid]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Unknown relation. Cannot translate: \mid [\mid]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Unknown relation. Cannot translate: \mid [\mid]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_160884575fea48de4b89ddd27900e26c",
"formula" : "\\begin{align}\nH_0 (x\\mid q) & = 1 \\\\\nH_1 (x\\mid q) & = 2x \\\\\nH_2 (x\\mid q) & = 4x^2 - (1-q) \\\\\nH_3 (x\\mid q) & = 8x^3 - 2x(2-q-q^2) \\\\\nH_4 (x\\mid q) & = 16x^4 - 4x^2(3-q-q^2-q^3) + (1-q-q^3+q^4)\n\\end{align}",
"semanticFormula" : "\\begin{align}\nH_0 (x\\mid q) & = 1 \\\\\nH_1 (x\\mid q) & = 2x \\\\\nH_2 (x\\mid q) & = 4x^2 - (1-q) \\\\\nH_3 (x\\mid q) & = 8x^3 - 2x(2-q-q^2) \\\\\nH_4 (x\\mid q) & = 16x^4 - 4x^2(3-q-q^2-q^3) + (1-q-q^3+q^4)\n\\end{align}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) No translation possible for given token: Unknown relation. Cannot translate: \\mid [\\mid]"
}
},
"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) No translation possible for given token: Unknown relation. Cannot translate: \\mid [\\mid]"
}
},
"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) No translation possible for given token: Unknown relation. Cannot translate: \\mid [\\mid]"
}
},
"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" : [ "\\begin{align}H_0 (x\\mid q) & = 1 \\\\H_1 (x\\mid q) & = 2x \\\\H_2 (x\\mid q) & = 4x^2 - (1-q) \\\\H_3 (x\\mid q) & = 8x^3 - 2x(2-q-q^2) \\\\H_4 (x\\mid q) & = 16x^4 - 4x^2(3-q-q^2-q^3) + (1-q-q^3+q^4)\\end{align}", "q" ],
"isPartOf" : [ "\\begin{align}H_0 (x\\mid q) & = 1 \\\\H_1 (x\\mid q) & = 2x \\\\H_2 (x\\mid q) & = 4x^2 - (1-q) \\\\H_3 (x\\mid q) & = 8x^3 - 2x(2-q-q^2) \\\\H_4 (x\\mid q) & = 16x^4 - 4x^2(3-q-q^2-q^3) + (1-q-q^3+q^4)\\end{align}" ],
"definiens" : [ ]
}