LaTeX to CAS translator
Jump to navigation
Jump to search
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 g_1(x)}
... is translated to the CAS output ...
Semantic latex: g_1(x)
Confidence: 0
Mathematica
Translation: Subscript[g, 1][x]
Information
Sub Equations
- Subscript[g, 1][x]
Free variables
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: Symbol('{g}_{1}')(x)
Information
Sub Equations
- Symbol('{g}_{1}')(x)
Free variables
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: g[1](x)
Information
Sub Equations
- g[1](x)
Free variables
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- asymptotic series
- series expansion
- special case
- ber
- bei
Complete translation information:
{
"id" : "FORMULA_6bedb7099782209abc18fb0febb41f23",
"formula" : "g_1(x)",
"semanticFormula" : "g_1(x)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "Subscript[g, 1][x]",
"translationInformation" : {
"subEquations" : [ "Subscript[g, 1][x]" ],
"freeVariables" : [ "x" ],
"tokenTranslations" : {
"g" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
},
"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" : "Symbol('{g}_{1}')(x)",
"translationInformation" : {
"subEquations" : [ "Symbol('{g}_{1}')(x)" ],
"freeVariables" : [ "x" ],
"tokenTranslations" : {
"g" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
},
"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" : "g[1](x)",
"translationInformation" : {
"subEquations" : [ "g[1](x)" ],
"freeVariables" : [ "x" ],
"tokenTranslations" : {
"g" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
},
"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" : 30
} ],
"includes" : [ "x)", "x" ],
"isPartOf" : [ "g_1(x) = \\sum_{k \\geq 1} \\frac{\\sin(k \\pi / 4)}{k! (8x)^k} \\prod_{l = 1}^k (2l - 1)^2", "\\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}", "\\mathrm{ber}(x) \\sim \\frac{e^{\\frac{x}{\\sqrt{2}}}}{\\sqrt{2 \\pi x}} \\left (f_1(x) \\cos \\alpha + g_1(x) \\sin \\alpha \\right ) - \\frac{\\mathrm{kei}(x)}{\\pi}" ],
"definiens" : [ {
"definition" : "asymptotic series",
"score" : 0.833589031361758
}, {
"definition" : "series expansion",
"score" : 0.8220398029714824
}, {
"definition" : "special case",
"score" : 0.7403188246952234
}, {
"definition" : "ber",
"score" : 0.6231540443721655
}, {
"definition" : "bei",
"score" : 0.5271746031746032
} ]
}