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 f(x_j) = \delta_{ij}}
... is translated to the CAS output ...
Semantic latex: f(x_j) = \delta_{\iunit j}
Confidence: 0
Mathematica
Translation: f[Subscript[x, j]] == Subscript[\[Delta], I*j]
Information
Sub Equations
- f[Subscript[x, j]] = Subscript[\[Delta], I*j]
Free variables
- Subscript[\[Delta], I*j]
- Subscript[x, j]
- j
Symbol info
- Could be the first Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
- Imaginary unit was translated to: I
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: f(Symbol('{x}_{j}')) == Symbol('{Symbol('delta')}_{I*j}')
Information
Sub Equations
- f(Symbol('{x}_{j}')) = Symbol('{Symbol('delta')}_{I*j}')
Free variables
- Symbol('{Symbol('delta')}_{I*j}')
- Symbol('{x}_{j}')
- j
Symbol info
- Could be the first Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
- Imaginary unit was translated to: I
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: f(x[j]) = delta[I*j]
Information
Sub Equations
- f(x[j]) = delta[I*j]
Free variables
- delta[I*j]
- j
- x[j]
Symbol info
- Could be the first Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
- Imaginary unit was translated to: I
- 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
- j
- 3-term recurrence relation
- term
- Eq
- relation
- choice of node
Complete translation information:
{
"id" : "FORMULA_08297f32795a4f5125f8dbc0e94c640f",
"formula" : "f(x_j) = \\delta_{ij}",
"semanticFormula" : "f(x_j) = \\delta_{\\iunit j}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "f[Subscript[x, j]] == Subscript[\\[Delta], I*j]",
"translationInformation" : {
"subEquations" : [ "f[Subscript[x, j]] = Subscript[\\[Delta], I*j]" ],
"freeVariables" : [ "Subscript[\\[Delta], I*j]", "Subscript[x, j]", "j" ],
"tokenTranslations" : {
"\\delta" : "Could be the first Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
"\\iunit" : "Imaginary unit was translated to: I",
"f" : "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" : "f(Symbol('{x}_{j}')) == Symbol('{Symbol('delta')}_{I*j}')",
"translationInformation" : {
"subEquations" : [ "f(Symbol('{x}_{j}')) = Symbol('{Symbol('delta')}_{I*j}')" ],
"freeVariables" : [ "Symbol('{Symbol('delta')}_{I*j}')", "Symbol('{x}_{j}')", "j" ],
"tokenTranslations" : {
"\\delta" : "Could be the first Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
"\\iunit" : "Imaginary unit was translated to: I",
"f" : "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" : "f(x[j]) = delta[I*j]",
"translationInformation" : {
"subEquations" : [ "f(x[j]) = delta[I*j]" ],
"freeVariables" : [ "delta[I*j]", "j", "x[j]" ],
"tokenTranslations" : {
"\\delta" : "Could be the first Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
"\\iunit" : "Imaginary unit was translated to: I",
"f" : "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" : 6,
"sentence" : 1,
"word" : 1
} ],
"includes" : [ "x_{i}", "x_i", "r(x_{i})", "x_{j}", "f(x)", "x", "x_j" ],
"isPartOf" : [ "\\sum_{i=1}^n w_i h(x_i) = \\sum_{i=1}^n w_i r(x_i)", "p_{n+1}(x_{i}) = (a)p_{n}(x_{i}) + (b)p_{n-1}(x_{i})", "\\int_{a}^{b}\\omega(x)f(x)dx=\\sum_{j=1}^{N}w_{j}f(x_{j}) = \\sum_{j=1}^{N} \\delta_{ij} w_j = w_{i} > 0" ],
"definiens" : [ {
"definition" : "j",
"score" : 0.5076623336817617
}, {
"definition" : "3-term recurrence relation",
"score" : 0.4784564245921376
}, {
"definition" : "term",
"score" : 0.44236504421594536
}, {
"definition" : "Eq",
"score" : 0.4025311038849381
}, {
"definition" : "relation",
"score" : 0.378190477131687
}, {
"definition" : "choice of node",
"score" : 0.34209909675549466
} ]
}