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 \Gamma\left(a,x\right)}
... is translated to the CAS output ...
Semantic latex: \incGamma@{a}{x}
Confidence: 0.86910662268539
Mathematica
Translation: Gamma[a, x]
Information
Sub Equations
- Gamma[a, x]
Free variables
- a
- x
Symbol info
- Incomplete Gamma function (upper); Example: \incGamma@{a}{z}
Will be translated to: Gamma[$0, $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/8.2#E2 Mathematica: https://reference.wolfram.com/language/ref/Gamma.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \incGamma [\incGamma]
Tests
Symbolic
Numeric
Maple
Translation: GAMMA(a, x)
Information
Sub Equations
- GAMMA(a, x)
Free variables
- a
- x
Symbol info
- Incomplete Gamma function (upper); Example: \incGamma@{a}{z}
Will be translated to: GAMMA($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/8.2#E2 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=GAMMA
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- incomplete gamma function
Complete translation information:
{
"id" : "FORMULA_20a0032877c145184fefabfc60f11bd0",
"formula" : "\\Gamma\\left(a,x\\right)",
"semanticFormula" : "\\incGamma@{a}{x}",
"confidence" : 0.8691066226853934,
"translations" : {
"Mathematica" : {
"translation" : "Gamma[a, x]",
"translationInformation" : {
"subEquations" : [ "Gamma[a, x]" ],
"freeVariables" : [ "a", "x" ],
"tokenTranslations" : {
"\\incGamma" : "Incomplete Gamma function (upper); Example: \\incGamma@{a}{z}\nWill be translated to: Gamma[$0, $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/8.2#E2\nMathematica: https://reference.wolfram.com/language/ref/Gamma.html"
}
},
"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: Cannot extract information from feature set: \\incGamma [\\incGamma]"
}
},
"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" : "GAMMA(a, x)",
"translationInformation" : {
"subEquations" : [ "GAMMA(a, x)" ],
"freeVariables" : [ "a", "x" ],
"tokenTranslations" : {
"\\incGamma" : "Incomplete Gamma function (upper); Example: \\incGamma@{a}{z}\nWill be translated to: GAMMA($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/8.2#E2\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=GAMMA"
}
},
"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" : 3,
"sentence" : 3,
"word" : 4
} ],
"includes" : [ "x", "x)" ],
"isPartOf" : [ "-(\\Gamma\\left(0,-\\ln 2\\right) + i\\,\\pi)" ],
"definiens" : [ {
"definition" : "incomplete gamma function",
"score" : 0.722
} ]
}