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} \Lambda(q) = {} & q\kappa - \frac{1}{2^3}(1+k^2)(q^2+1) - \frac{q}{2^6\kappa}\{(1+k^2)^2(q^2+3) - 4k^2(q^2+5)\} \\[6pt] & {} -\frac{1}{2^{10}\kappa^2} \Big\{(1+k^2)^3(5q^4+34q^2+9) - 4k^2(1+k^2)(5q^4+34q^2+9) \\[6pt] & {} - 384\Omega^2k^4(q^2+1)\Big\} - \cdots , \end{align} }
... is translated to the CAS output ...
Semantic latex: \begin{align} \Lambda(q) = {} & q\kappa - \frac{1}{2^3}(1+k^2)(q^2+1) - \frac{q}{2^6\kappa}\{(1+k^2)^2(q^2+3) - 4k^2(q^2+5)\} \\ & {} -\frac{1}{2^{10}\kappa^2} \{(1+k^2)^3(5q^4+34q^2+9) - 4k^2(1+k^2)(5q^4+34q^2+9) \\ & {} - 384\Omega^2k^4(q^2+1)\} - \cdots , \end{align}
Confidence: 0
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) Parenthesis mismatch in expression: Reached the end of sequence but a bracket is left open: \{
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) Parenthesis mismatch in expression: Reached the end of sequence but a bracket is left open: \{
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) Parenthesis mismatch in expression: Reached the end of sequence but a bracket is left open: \{
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_ca1545a92573e8d3afb4cefe0069cdeb",
"formula" : "\\begin{align}\n\\Lambda(q) = {} & q\\kappa - \\frac{1}{2^3}(1+k^2)(q^2+1) - \\frac{q}{2^6\\kappa}\\{(1+k^2)^2(q^2+3) - 4k^2(q^2+5)\\} \\\\\n& {} -\\frac{1}{2^{10}\\kappa^2} \\{(1+k^2)^3(5q^4+34q^2+9) - 4k^2(1+k^2)(5q^4+34q^2+9) \\\\\n& {} - 384\\Omega^2k^4(q^2+1)\\} - \\cdots ,\n\\end{align}",
"semanticFormula" : "\\begin{align}\n\\Lambda(q) = {} & q\\kappa - \\frac{1}{2^3}(1+k^2)(q^2+1) - \\frac{q}{2^6\\kappa}\\{(1+k^2)^2(q^2+3) - 4k^2(q^2+5)\\} \\\\\n& {} -\\frac{1}{2^{10}\\kappa^2} \\{(1+k^2)^3(5q^4+34q^2+9) - 4k^2(1+k^2)(5q^4+34q^2+9) \\\\\n& {} - 384\\Omega^2k^4(q^2+1)\\} - \\cdots ,\n\\end{align}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) Parenthesis mismatch in expression: Reached the end of sequence but a bracket is left open: \\{"
}
},
"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) Parenthesis mismatch in expression: Reached the end of sequence but a bracket is left open: \\{"
}
},
"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) Parenthesis mismatch in expression: Reached the end of sequence but a bracket is left open: \\{"
}
},
"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" : [ "\\Lambda(q)", "\\begin{align}\\Lambda(q) = {} & q\\kappa - \\frac{1}{2^3}(1+k^2)(q^2+1) - \\frac{q}{2^6\\kappa}\\{(1+k^2)^2(q^2+3) - 4k^2(q^2+5)\\} \\\\[6pt]& {} -\\frac{1}{2^{10}\\kappa^2} \\Big\\{(1+k^2)^3(5q^4+34q^2+9) - 4k^2(1+k^2)(5q^4+34q^2+9) \\\\[6pt]& {} - 384\\Omega^2k^4(q^2+1)\\Big\\} - \\cdots ,\\end{align}", "\\Lambda", "\\Omega", "\\kappa", "q", "k" ],
"isPartOf" : [ "\\begin{align}\\Lambda(q) = {} & q\\kappa - \\frac{1}{2^3}(1+k^2)(q^2+1) - \\frac{q}{2^6\\kappa}\\{(1+k^2)^2(q^2+3) - 4k^2(q^2+5)\\} \\\\[6pt]& {} -\\frac{1}{2^{10}\\kappa^2} \\Big\\{(1+k^2)^3(5q^4+34q^2+9) - 4k^2(1+k^2)(5q^4+34q^2+9) \\\\[6pt]& {} - 384\\Omega^2k^4(q^2+1)\\Big\\} - \\cdots ,\\end{align}" ],
"definiens" : [ ]
}