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 \mathrm{kei}(x) \sim -\sqrt{\frac{\pi}{2x}} e^{-\frac{x}{\sqrt{2}}} [f_2(x) \sin \beta + g_2(x) \cos \beta],}
... is translated to the CAS output ...
Semantic latex: \mathrm{kei}(x) \sim - \sqrt{\frac{\cpi}{2x}} \expe^{-\frac{x}{\sqrt{2}}} [f_2(x) \sin \beta + g_2(x) \cos \beta]
Confidence: 0
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \sim [\sim]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \sim [\sim]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \sim [\sim]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- series expansion
- kei
- asymptotic series
- ker
- integer
- special case kei
Complete translation information:
{
"id" : "FORMULA_7efddc8f842226494c31bc1b6260faca",
"formula" : "\\mathrm{kei}(x) \\sim -\\sqrt{\\frac{\\pi}{2x}} e^{-\\frac{x}{\\sqrt{2}}} [f_2(x) \\sin \\beta + g_2(x) \\cos \\beta]",
"semanticFormula" : "\\mathrm{kei}(x) \\sim - \\sqrt{\\frac{\\cpi}{2x}} \\expe^{-\\frac{x}{\\sqrt{2}}} [f_2(x) \\sin \\beta + g_2(x) \\cos \\beta]",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\sim [\\sim]"
}
},
"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: \\sim [\\sim]"
}
},
"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: Cannot extract information from feature set: \\sim [\\sim]"
}
},
"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" : 4,
"sentence" : 0,
"word" : 34
} ],
"includes" : [ "x)", "x", "g_{2}(x)" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "series expansion",
"score" : 0.8227064776126595
}, {
"definition" : "kei",
"score" : 0.7936682821800771
}, {
"definition" : "asymptotic series",
"score" : 0.722
}, {
"definition" : "ker",
"score" : 0.6687181434333315
}, {
"definition" : "integer",
"score" : 0.6288842031023242
}, {
"definition" : "special case kei",
"score" : 0.6288842031023242
} ]
}