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 \mathrm{ker}(x) e^{x/\sqrt{2}}}
... is translated to the CAS output ...
Semantic latex: k \expe r(x) \expe^{x/\sqrt{2}}
Confidence: 0
Mathematica
Translation: k*E*r[x]* Exp[x/(Sqrt[2])]
Information
Sub Equations
- k*E*r[x]* Exp[x/(Sqrt[2])]
Free variables
- k
- x
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: k*E*r(x)* exp(x/(sqrt(2)))
Information
Sub Equations
- k*E*r(x)* exp(x/(sqrt(2)))
Free variables
- k
- x
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: k*exp(1)*r(x)* exp(x/(sqrt(2)))
Information
Sub Equations
- k*exp(1)*r(x)* exp(x/(sqrt(2)))
Free variables
- k
- x
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- 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_cb268ff37a8080459174156a999397f2",
"formula" : "\\mathrm{ker}(x) e^{x/\\sqrt{2}}",
"semanticFormula" : "k \\expe r(x) \\expe^{x/\\sqrt{2}}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "k*E*r[x]* Exp[x/(Sqrt[2])]",
"translationInformation" : {
"subEquations" : [ "k*E*r[x]* Exp[x/(Sqrt[2])]" ],
"freeVariables" : [ "k", "x" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"r" : "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" : "k*E*r(x)* exp(x/(sqrt(2)))",
"translationInformation" : {
"subEquations" : [ "k*E*r(x)* exp(x/(sqrt(2)))" ],
"freeVariables" : [ "k", "x" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"r" : "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" : "k*exp(1)*r(x)* exp(x/(sqrt(2)))",
"translationInformation" : {
"subEquations" : [ "k*exp(1)*r(x)* exp(x/(sqrt(2)))" ],
"freeVariables" : [ "k", "x" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"r" : "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" : [ "x)", "x" ],
"isPartOf" : [ ],
"definiens" : [ ]
}