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 \, \frac{d^3}{dx^3}G(x)\geq 0}
... is translated to the CAS output ...
Semantic latex: \deriv [3]{ }{x} \BarnesG@{x} \geq 0
Confidence: 0.72606363917343
Mathematica
Translation: D[BarnesG[x], {x, 3}] >= 0
Information
Sub Equations
- D[BarnesG[x], {x, 3}] >= 0
Free variables
- x
Symbol info
- Double Gamma / Barnes Gamma; Example: \BarnesG@{z}
Will be translated to: BarnesG[$0] Relevant links to definitions: DLMF: http://dlmf.nist.gov/5.17#E1 Mathematica: https://reference.wolfram.com/language/ref/BarnesG.html
- Derivative; Example: \deriv[n]{f}{x}
Will be translated to: D[$1, {$2, $0}] Relevant links to definitions: DLMF: http://dlmf.nist.gov/1.4#E4 Mathematica: https://reference.wolfram.com/language/ref/D.html
Tests
Symbolic
Test expression: D[BarnesG[x], {x, 3}]\geq0
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \BarnesG [\BarnesG]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \BarnesG [\BarnesG]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_8f87a36707bca6c26a96f5e5c1af6689",
"formula" : "\\frac{d^3}{dx^3}G(x)\\geq 0",
"semanticFormula" : "\\deriv [3]{ }{x} \\BarnesG@{x} \\geq 0",
"confidence" : 0.7260636391734279,
"translations" : {
"Mathematica" : {
"translation" : "D[BarnesG[x], {x, 3}] >= 0",
"translationInformation" : {
"subEquations" : [ "D[BarnesG[x], {x, 3}] >= 0" ],
"freeVariables" : [ "x" ],
"tokenTranslations" : {
"\\BarnesG" : "Double Gamma / Barnes Gamma; Example: \\BarnesG@{z}\nWill be translated to: BarnesG[$0]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/5.17#E1\nMathematica: https://reference.wolfram.com/language/ref/BarnesG.html",
"\\deriv1" : "Derivative; Example: \\deriv[n]{f}{x}\nWill be translated to: D[$1, {$2, $0}]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/1.4#E4\nMathematica: https://reference.wolfram.com/language/ref/D.html"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "ERROR",
"numberOfTests" : 1,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 1,
"crashed" : false,
"testCalculationsGroup" : [ {
"lhs" : "D[BarnesG[x], {x, 3}]",
"rhs" : "0",
"testExpression" : "D[BarnesG[x], {x, 3}]\\geq0",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\BarnesG [\\BarnesG]"
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\BarnesG [\\BarnesG]"
}
}
}
},
"positions" : [ ],
"includes" : [ "G", "\\, \\frac{d^3}{dx^3}G(x)\\geq 0" ],
"isPartOf" : [ "\\, \\frac{d^3}{dx^3}G(x)\\geq 0" ],
"definiens" : [ ]
}