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 (y-x) F_1(a, b_1+1, b_2+1,c,x,y) = y \, F_1(a,b_1,b_2+1,c,x,y) - x \, F_1(a,b_1+1,b_2,c,x,y)}
... is translated to the CAS output ...
Semantic latex: (y-x) F_1(a, b_1+1, b_2+1,c,x,y) = y F_1(a,b_1,b_2+1,c,x,y) - x F_1(a,b_1+1,b_2,c,x,y)
Confidence: 0
Mathematica
Translation: (y - x)*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2]+ 1 , c , x , y] == y*Subscript[F, 1][a , Subscript[b, 1], Subscript[b, 2]+ 1 , c , x , y]- x*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c , x , y]
Information
Sub Equations
- (y - x)*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2]+ 1 , c , x , y] = y*Subscript[F, 1][a , Subscript[b, 1], Subscript[b, 2]+ 1 , c , x , y]- x*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c , x , y]
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: (y - x)*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}')+ 1 , c , x , y) == y*Symbol('{F}_{1}')(a , Symbol('{b}_{1}'), Symbol('{b}_{2}')+ 1 , c , x , y)- x*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c , x , y)
Information
Sub Equations
- (y - x)*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}')+ 1 , c , x , y) = y*Symbol('{F}_{1}')(a , Symbol('{b}_{1}'), Symbol('{b}_{2}')+ 1 , c , x , y)- x*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c , x , y)
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: (y - x)*F[1](a , b[1]+ 1 , b[2]+ 1 , c , x , y) = y*F[1](a , b[1], b[2]+ 1 , c , x , y)- x*F[1](a , b[1]+ 1 , b[2], c , x , y)
Information
Sub Equations
- (y - x)*F[1](a , b[1]+ 1 , b[2]+ 1 , c , x , y) = y*F[1](a , b[1], b[2]+ 1 , c , x , y)- x*F[1](a , b[1]+ 1 , b[2], c , x , y)
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
Complete translation information:
{
"id" : "FORMULA_06433679909752df47fa9b998f8c8b24",
"formula" : "(y-x) F_1(a, b_1+1, b_2+1,c,x,y) = y F_1(a,b_1,b_2+1,c,x,y) - x F_1(a,b_1+1,b_2,c,x,y)",
"semanticFormula" : "(y-x) F_1(a, b_1+1, b_2+1,c,x,y) = y F_1(a,b_1,b_2+1,c,x,y) - x F_1(a,b_1+1,b_2,c,x,y)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "(y - x)*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2]+ 1 , c , x , y] == y*Subscript[F, 1][a , Subscript[b, 1], Subscript[b, 2]+ 1 , c , x , y]- x*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c , x , y]",
"translationInformation" : {
"subEquations" : [ "(y - x)*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2]+ 1 , c , x , y] = y*Subscript[F, 1][a , Subscript[b, 1], Subscript[b, 2]+ 1 , c , x , y]- x*Subscript[F, 1][a , Subscript[b, 1]+ 1 , Subscript[b, 2], c , x , y]" ],
"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" : "(y - x)*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}')+ 1 , c , x , y) == y*Symbol('{F}_{1}')(a , Symbol('{b}_{1}'), Symbol('{b}_{2}')+ 1 , c , x , y)- x*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c , x , y)",
"translationInformation" : {
"subEquations" : [ "(y - x)*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}')+ 1 , c , x , y) = y*Symbol('{F}_{1}')(a , Symbol('{b}_{1}'), Symbol('{b}_{2}')+ 1 , c , x , y)- x*Symbol('{F}_{1}')(a , Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c , x , y)" ],
"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" : "(y - x)*F[1](a , b[1]+ 1 , b[2]+ 1 , c , x , y) = y*F[1](a , b[1], b[2]+ 1 , c , x , y)- x*F[1](a , b[1]+ 1 , b[2], c , x , y)",
"translationInformation" : {
"subEquations" : [ "(y - x)*F[1](a , b[1]+ 1 , b[2]+ 1 , c , x , y) = y*F[1](a , b[1], b[2]+ 1 , c , x , y)- x*F[1](a , b[1]+ 1 , b[2], c , x , y)" ],
"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}", "F", "x" ],
"isPartOf" : [ ],
"definiens" : [ ]
}