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 \int_{-\infty}^{+\infty} e^{-x^2} f(x)\,dx.}
... is translated to the CAS output ...
Semantic latex: \int_{-\infty}^{+\infty} \expe^{-x^2} f(x) \diff{x}
Confidence: 0
Mathematica
Translation: Integrate[Exp[- (x)^(2)]*f[x], {x, - Infinity, + Infinity}, GenerateConditions->None]
Information
Sub Equations
- Integrate[Exp[- (x)^(2)]*f[x], {x, - Infinity, + Infinity}, GenerateConditions->None]
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: integrate(exp(- (x)**(2))*f(x), (x, - oo, + oo))
Information
Sub Equations
- integrate(exp(- (x)**(2))*f(x), (x, - oo, + oo))
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: int(exp(- (x)^(2))*f(x), x = - infinity..+ infinity)
Information
Sub Equations
- int(exp(- (x)^(2))*f(x), x = - infinity..+ infinity)
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
Is part of
Complete translation information:
{
"id" : "FORMULA_6d629de5483543f8d4e2dc120b281b3b",
"formula" : "\\int_{-\\infty}^{+\\infty} e^{-x^2} f(x)dx",
"semanticFormula" : "\\int_{-\\infty}^{+\\infty} \\expe^{-x^2} f(x) \\diff{x}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "Integrate[Exp[- (x)^(2)]*f[x], {x, - Infinity, + Infinity}, GenerateConditions->None]",
"translationInformation" : {
"subEquations" : [ "Integrate[Exp[- (x)^(2)]*f[x], {x, - Infinity, + Infinity}, GenerateConditions->None]" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"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" : "integrate(exp(- (x)**(2))*f(x), (x, - oo, + oo))",
"translationInformation" : {
"subEquations" : [ "integrate(exp(- (x)**(2))*f(x), (x, - oo, + oo))" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"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" : "int(exp(- (x)^(2))*f(x), x = - infinity..+ infinity)",
"translationInformation" : {
"subEquations" : [ "int(exp(- (x)^(2))*f(x), x = - infinity..+ infinity)" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"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" : [ "\\int_{-\\infty}^{+\\infty} e^{-x^2} f(x)\\,dx" ],
"isPartOf" : [ "\\int_{-\\infty}^{+\\infty} e^{-x^2} f(x)\\,dx \\approx \\sum_{i=1}^n w_i f(x_i)", "\\int_{-\\infty}^{+\\infty} e^{-x^2} f(x)\\,dx" ],
"definiens" : [ ]
}