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{bei}(x) \sim \frac{e^{\frac{x}{\sqrt{2}}}}{\sqrt{2 \pi x}} [f_1(x) \sin \alpha - g_1(x) \cos \alpha] - \frac{\mathrm{ker}(x)}{\pi},}
... is translated to the CAS output ...
Semantic latex: \mathrm{bei}(x) \sim \frac{\expe^{\frac{x}{\sqrt{2}}}}{\sqrt{2 \cpi x}} [f_1(x) \sin \alpha - g_1(x) \cos \alpha] - \frac{k \expe r(x)}{\cpi}
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
- asymptotic series
- series expansion
- special case
- ber
- bei
Complete translation information:
{
"id" : "FORMULA_9dc453764a64947d817a07579b2447d0",
"formula" : "\\mathrm{bei}(x) \\sim \\frac{e^{\\frac{x}{\\sqrt{2}}}}{\\sqrt{2 \\pi x}} [f_1(x) \\sin \\alpha - g_1(x) \\cos \\alpha] - \\frac{\\mathrm{ker}(x)}{\\pi}",
"semanticFormula" : "\\mathrm{bei}(x) \\sim \\frac{\\expe^{\\frac{x}{\\sqrt{2}}}}{\\sqrt{2 \\cpi x}} [f_1(x) \\sin \\alpha - g_1(x) \\cos \\alpha] - \\frac{k \\expe r(x)}{\\cpi}",
"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" : 2,
"sentence" : 1,
"word" : 22
} ],
"includes" : [ "x", "x)", "\\alpha", "f_1(x)", "g_1(x)" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "asymptotic series",
"score" : 0.722
}, {
"definition" : "series expansion",
"score" : 0.6954080343007951
}, {
"definition" : "special case",
"score" : 0.6288842031023242
}, {
"definition" : "ber",
"score" : 0.5816270233429564
}, {
"definition" : "bei",
"score" : 0.5329047619047619
} ]
}