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 c \,F_1(a,b_1,b_2,c; x,y) + c(x-1) F_1(a,b_1+1,b_2,c; x,y) - (c-a)x \,F_1(a,b_1+1,b_2,c+1; x,y) = 0 ~, }
... is translated to the CAS output ...
Semantic latex: c F_1(a,b_1,b_2,c; x,y) + c(x-1) F_1(a,b_1+1,b_2,c; x,y) - (c-a)x F_1(a,b_1+1,b_2,c+1; x,y) = 0 ~
Confidence: 0
Mathematica
Translation: c*Subscript[F, 1][a , Subscript[b, 1], Subscript[b, 2], c ; x , y]+ c*(x - 1)*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c ; x , y]-(c - a)*x*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c + 1 ; x , y] == 0
Information
Sub Equations
- c*Subscript[F, 1][a , Subscript[b, 1], Subscript[b, 2], c ; x , y]+ c*(x - 1)*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c ; x , y]-(c - a)*x*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c + 1 ; x , y] = 0
Free variables
- Subscript[b, 1]
- Subscript[b, 2]
- a
- c
- x
- y
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: c*Symbol('{F}_{1}')(a , Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)+ c*(x - 1)*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c ; x , y)-(c - a)*x*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c + 1 ; x , y) == 0
Information
Sub Equations
- c*Symbol('{F}_{1}')(a , Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)+ c*(x - 1)*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c ; x , y)-(c - a)*x*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c + 1 ; x , y) = 0
Free variables
- Symbol('{b}_{1}')
- Symbol('{b}_{2}')
- a
- c
- x
- y
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: c*F[1](a , b[1], b[2], c ; x , y)+ c*(x - 1)*F[1](a , b[1]+ 1 , b[2], c ; x , y)-(c - a)*x*F[1](a , b[1]+ 1 , b[2], c + 1 ; x , y) = 0
Information
Sub Equations
- c*F[1](a , b[1], b[2], c ; x , y)+ c*(x - 1)*F[1](a , b[1]+ 1 , b[2], c ; x , y)-(c - a)*x*F[1](a , b[1]+ 1 , b[2], c + 1 ; x , y) = 0
Free variables
- a
- b[1]
- b[2]
- c
- x
- y
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
Complete translation information:
{
"id" : "FORMULA_553b0cc5ba75b349bfa9d66cf753675b",
"formula" : "c F_1(a,b_1,b_2,c; x,y) + c(x-1) F_1(a,b_1+1,b_2,c; x,y) - (c-a)x F_1(a,b_1+1,b_2,c+1; x,y) = 0 ~",
"semanticFormula" : "c F_1(a,b_1,b_2,c; x,y) + c(x-1) F_1(a,b_1+1,b_2,c; x,y) - (c-a)x F_1(a,b_1+1,b_2,c+1; x,y) = 0 ~",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "c*Subscript[F, 1][a , Subscript[b, 1], Subscript[b, 2], c ; x , y]+ c*(x - 1)*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c ; x , y]-(c - a)*x*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c + 1 ; x , y] == 0",
"translationInformation" : {
"subEquations" : [ "c*Subscript[F, 1][a , Subscript[b, 1], Subscript[b, 2], c ; x , y]+ c*(x - 1)*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c ; x , y]-(c - a)*x*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c + 1 ; x , y] = 0" ],
"freeVariables" : [ "Subscript[b, 1]", "Subscript[b, 2]", "a", "c", "x", "y" ],
"tokenTranslations" : {
"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" : "c*Symbol('{F}_{1}')(a , Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)+ c*(x - 1)*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c ; x , y)-(c - a)*x*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c + 1 ; x , y) == 0",
"translationInformation" : {
"subEquations" : [ "c*Symbol('{F}_{1}')(a , Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)+ c*(x - 1)*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c ; x , y)-(c - a)*x*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c + 1 ; x , y) = 0" ],
"freeVariables" : [ "Symbol('{b}_{1}')", "Symbol('{b}_{2}')", "a", "c", "x", "y" ],
"tokenTranslations" : {
"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" : "c*F[1](a , b[1], b[2], c ; x , y)+ c*(x - 1)*F[1](a , b[1]+ 1 , b[2], c ; x , y)-(c - a)*x*F[1](a , b[1]+ 1 , b[2], c + 1 ; x , y) = 0",
"translationInformation" : {
"subEquations" : [ "c*F[1](a , b[1], b[2], c ; x , y)+ c*(x - 1)*F[1](a , b[1]+ 1 , b[2], c ; x , y)-(c - a)*x*F[1](a , b[1]+ 1 , b[2], c + 1 ; x , y) = 0" ],
"freeVariables" : [ "a", "b[1]", "b[2]", "c", "x", "y" ],
"tokenTranslations" : {
"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" : [ ],
"includes" : [ "y", "F_{1}", "c \\,F_1(a,b_1,b_2,c; x,y) + c(x-1) F_1(a,b_1+1,b_2,c; x,y) - (c-a)x \\,F_1(a,b_1+1,b_2,c+1; x,y) = 0", "F", "x" ],
"isPartOf" : [ "c \\,F_1(a,b_1,b_2,c; x,y) + c(x-1) F_1(a,b_1+1,b_2,c; x,y) - (c-a)x \\,F_1(a,b_1+1,b_2,c+1; x,y) = 0" ],
"definiens" : [ ]
}