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 \Gamma(\alpha,x;b)=\int_x^\infty t^{\alpha-1}e^{-t-\frac{b}{t}}~dt}
... is translated to the CAS output ...
Semantic latex: \Gamma(\alpha , x ; b) = \int_x^\infty t^{\alpha-1} \expe^{-t-\frac{b}{t}} \diff{t}
Confidence: 0
Mathematica
Translation: \[CapitalGamma][\[Alpha], x ; b] == Integrate[(t)^(\[Alpha]- 1)* Exp[- t -Divide[b,t]], {t, x, Infinity}, GenerateConditions->None]
Information
Sub Equations
- \[CapitalGamma][\[Alpha], x ; b] = Integrate[(t)^(\[Alpha]- 1)* Exp[- t -Divide[b,t]], {t, x, Infinity}, GenerateConditions->None]
Free variables
- \[Alpha]
- \[CapitalGamma]
- b
- x
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- 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
Test expression: (\[CapitalGamma]*(\[Alpha], x ; b))-(Integrate[(t)^(\[Alpha]- 1)* Exp[- t -Divide[b,t]], {t, x, Infinity}, GenerateConditions->None])
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: Symbol('Gamma')(Symbol('alpha'), x ; b) == integrate((t)**(Symbol('alpha')- 1)* exp(- t -(b)/(t)), (t, x, oo))
Information
Sub Equations
- Symbol('Gamma')(Symbol('alpha'), x ; b) = integrate((t)**(Symbol('alpha')- 1)* exp(- t -(b)/(t)), (t, x, oo))
Free variables
- Symbol('Gamma')
- Symbol('alpha')
- b
- x
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- 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: Gamma(alpha , x ; b) = int((t)^(alpha - 1)* exp(- t -(b)/(t)), t = x..infinity)
Information
Sub Equations
- Gamma(alpha , x ; b) = int((t)^(alpha - 1)* exp(- t -(b)/(t)), t = x..infinity)
Free variables
- Gamma
- alpha
- b
- x
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- 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_f5e1b34afba45fe31a7d1c1a69018a86",
"formula" : "\\Gamma(\\alpha,x;b)=\\int_x^\\infty t^{\\alpha-1}e^{-t-\\frac{b}{t}}~dt",
"semanticFormula" : "\\Gamma(\\alpha , x ; b) = \\int_x^\\infty t^{\\alpha-1} \\expe^{-t-\\frac{b}{t}} \\diff{t}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[CapitalGamma][\\[Alpha], x ; b] == Integrate[(t)^(\\[Alpha]- 1)* Exp[- t -Divide[b,t]], {t, x, Infinity}, GenerateConditions->None]",
"translationInformation" : {
"subEquations" : [ "\\[CapitalGamma][\\[Alpha], x ; b] = Integrate[(t)^(\\[Alpha]- 1)* Exp[- t -Divide[b,t]], {t, x, Infinity}, GenerateConditions->None]" ],
"freeVariables" : [ "\\[Alpha]", "\\[CapitalGamma]", "b", "x" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\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",
"\\Gamma" : "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" : "ERROR",
"numberOfTests" : 1,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 1,
"crashed" : false,
"testCalculationsGroup" : [ {
"lhs" : "\\[CapitalGamma]*(\\[Alpha], x ; b)",
"rhs" : "Integrate[(t)^(\\[Alpha]- 1)* Exp[- t -Divide[b,t]], {t, x, Infinity}, GenerateConditions->None]",
"testExpression" : "(\\[CapitalGamma]*(\\[Alpha], x ; b))-(Integrate[(t)^(\\[Alpha]- 1)* Exp[- t -Divide[b,t]], {t, x, Infinity}, GenerateConditions->None])",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "Symbol('Gamma')(Symbol('alpha'), x ; b) == integrate((t)**(Symbol('alpha')- 1)* exp(- t -(b)/(t)), (t, x, oo))",
"translationInformation" : {
"subEquations" : [ "Symbol('Gamma')(Symbol('alpha'), x ; b) = integrate((t)**(Symbol('alpha')- 1)* exp(- t -(b)/(t)), (t, x, oo))" ],
"freeVariables" : [ "Symbol('Gamma')", "Symbol('alpha')", "b", "x" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\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",
"\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
}
},
"Maple" : {
"translation" : "Gamma(alpha , x ; b) = int((t)^(alpha - 1)* exp(- t -(b)/(t)), t = x..infinity)",
"translationInformation" : {
"subEquations" : [ "Gamma(alpha , x ; b) = int((t)^(alpha - 1)* exp(- t -(b)/(t)), t = x..infinity)" ],
"freeVariables" : [ "Gamma", "alpha", "b", "x" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\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",
"\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
}
}
},
"positions" : [ ],
"includes" : [ "\\Gamma(\\alpha,x;b)=\\int_x^\\infty t^{\\alpha-1}e^{-t-\\frac{b}{t}}dt" ],
"isPartOf" : [ "\\Gamma(\\alpha,x;b)=\\int_x^\\infty t^{\\alpha-1}e^{-t-\\frac{b}{t}}dt" ],
"definiens" : [ ]
}