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 \sum_{j=0}^n\frac{C_j^\alpha(x)}{{2\alpha+j-1\choose j}}\ge 0\qquad (x\ge-1,\, \alpha\ge 1/4).}
... is translated to the CAS output ...
Semantic latex: \sum_{j=0}^n\frac{C_j^\alpha(x)}{{2\alpha+j-1\choose j}}\ge 0\qquad (x\ge-1, \alpha\ge 1/4)
Confidence: 0
Mathematica
Translation: Sum[Divide[(Subscript[C, j])^\[Alpha][x],Binomial[2*\[Alpha]+ j - 1,j]], {j, 0, n}, GenerateConditions->None] >= 0
Information
Sub Equations
- Sum[Divide[(Subscript[C, j])^\[Alpha][x],Binomial[2*\[Alpha]+ j - 1,j]], {j, 0, n}, GenerateConditions->None] >= 0
Free variables
- \[Alpha]
- n
- x
Constraints
- (x >= - 1 , \[Alpha] >= 1/4)
Symbol info
- Could be the second Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: Sum(((Symbol('{C}_{j}'))**(Symbol('alpha'))(x))/(binomial(2*Symbol('alpha')+ j - 1,j)), (j, 0, n)) >= 0
Information
Sub Equations
- Sum(((Symbol('{C}_{j}'))**(Symbol('alpha'))(x))/(binomial(2*Symbol('alpha')+ j - 1,j)), (j, 0, n)) >= 0
Free variables
- Symbol('alpha')
- n
- x
Constraints
- (x >= - 1 , Symbol('alpha') >= 1/4)
Symbol info
- Could be the second Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: sum(((C[j])^(alpha)(x))/(binomial(2*alpha + j - 1,j)), j = 0..n) >= 0
Information
Sub Equations
- sum(((C[j])^(alpha)(x))/(binomial(2*alpha + j - 1,j)), j = 0..n) >= 0
Free variables
- alpha
- n
- x
Constraints
- (x >= - 1 , alpha >= 1/4)
Symbol info
- Could be the second Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
- 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
Complete translation information:
{
"id" : "FORMULA_bd3d9875c6263638d9c05af78041b61b",
"formula" : "\\sum_{j=0}^n\\frac{C_j^\\alpha(x)}{{2\\alpha+j-1\\choose j}}\\ge 0\\qquad (x\\ge-1, \\alpha\\ge 1/4)",
"semanticFormula" : "\\sum_{j=0}^n\\frac{C_j^\\alpha(x)}{{2\\alpha+j-1\\choose j}}\\ge 0\\qquad (x\\ge-1, \\alpha\\ge 1/4)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "Sum[Divide[(Subscript[C, j])^\\[Alpha][x],Binomial[2*\\[Alpha]+ j - 1,j]], {j, 0, n}, GenerateConditions->None] >= 0",
"translationInformation" : {
"subEquations" : [ "Sum[Divide[(Subscript[C, j])^\\[Alpha][x],Binomial[2*\\[Alpha]+ j - 1,j]], {j, 0, n}, GenerateConditions->None] >= 0" ],
"freeVariables" : [ "\\[Alpha]", "n", "x" ],
"constraints" : [ "(x >= - 1 , \\[Alpha] >= 1/4)" ],
"tokenTranslations" : {
"\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
"C" : "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" : "Sum(((Symbol('{C}_{j}'))**(Symbol('alpha'))(x))/(binomial(2*Symbol('alpha')+ j - 1,j)), (j, 0, n)) >= 0",
"translationInformation" : {
"subEquations" : [ "Sum(((Symbol('{C}_{j}'))**(Symbol('alpha'))(x))/(binomial(2*Symbol('alpha')+ j - 1,j)), (j, 0, n)) >= 0" ],
"freeVariables" : [ "Symbol('alpha')", "n", "x" ],
"constraints" : [ "(x >= - 1 , Symbol('alpha') >= 1/4)" ],
"tokenTranslations" : {
"\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
"C" : "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" : "sum(((C[j])^(alpha)(x))/(binomial(2*alpha + j - 1,j)), j = 0..n) >= 0",
"translationInformation" : {
"subEquations" : [ "sum(((C[j])^(alpha)(x))/(binomial(2*alpha + j - 1,j)), j = 0..n) >= 0" ],
"freeVariables" : [ "alpha", "n", "x" ],
"constraints" : [ "(x >= - 1 , alpha >= 1/4)" ],
"tokenTranslations" : {
"\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
"C" : "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" : [ ],
"includes" : [ "\\sum_{j=0}^n\\frac{C_j^\\alpha(x)}{{2\\alpha+j-1\\choose j}}\\ge 0\\qquad (x\\ge-1,\\, \\alpha\\ge 1/4)", "\\alpha", "\\mathbf{R}^{n}", "n" ],
"isPartOf" : [ "\\sum_{j=0}^n\\frac{C_j^\\alpha(x)}{{2\\alpha+j-1\\choose j}}\\ge 0\\qquad (x\\ge-1,\\, \\alpha\\ge 1/4)" ],
"definiens" : [ ]
}