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;0)=\gamma(\alpha,x)}
... is translated to the CAS output ...
Semantic latex: \gamma(\alpha,x;0)=\gamma(\alpha,x)
Confidence: 0
Mathematica
Translation: \[Gamma][\[Alpha], x ; 0] == \[Gamma][\[Alpha], x]
Information
Sub Equations
- \[Gamma][\[Alpha], x ; 0] = \[Gamma][\[Alpha], x]
Free variables
- \[Alpha]
- \[Gamma]
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- 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.
Tests
Symbolic
Test expression: (\[Gamma]*(\[Alpha], x ; 0))-(\[Gamma]*(\[Alpha], x))
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: Symbol('gamma')(Symbol('alpha'), x ; 0) == Symbol('gamma')(Symbol('alpha'), x)
Information
Sub Equations
- Symbol('gamma')(Symbol('alpha'), x ; 0) = Symbol('gamma')(Symbol('alpha'), x)
Free variables
- Symbol('alpha')
- Symbol('gamma')
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- 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.
Tests
Symbolic
Numeric
Maple
Translation: gamma(alpha , x ; 0) = gamma(alpha , x)
Information
Sub Equations
- gamma(alpha , x ; 0) = gamma(alpha , x)
Free variables
- alpha
- gamma
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- 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.
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- advantage
- associated Anger -- Weber function
- type incomplete-version of Bessel function
- example
- Digital Library of Mathematical Functions
Complete translation information:
{
"id" : "FORMULA_9316a12299fde39b15227ebecfb6ab4a",
"formula" : "\\gamma(\\alpha,x;0)=\\gamma(\\alpha,x)",
"semanticFormula" : "\\gamma(\\alpha,x;0)=\\gamma(\\alpha,x)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[Gamma][\\[Alpha], x ; 0] == \\[Gamma][\\[Alpha], x]",
"translationInformation" : {
"subEquations" : [ "\\[Gamma][\\[Alpha], x ; 0] = \\[Gamma][\\[Alpha], x]" ],
"freeVariables" : [ "\\[Alpha]", "\\[Gamma]", "x" ],
"tokenTranslations" : {
"\\gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\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"
}
},
"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" : "\\[Gamma]*(\\[Alpha], x ; 0)",
"rhs" : "\\[Gamma]*(\\[Alpha], x)",
"testExpression" : "(\\[Gamma]*(\\[Alpha], x ; 0))-(\\[Gamma]*(\\[Alpha], x))",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "Symbol('gamma')(Symbol('alpha'), x ; 0) == Symbol('gamma')(Symbol('alpha'), x)",
"translationInformation" : {
"subEquations" : [ "Symbol('gamma')(Symbol('alpha'), x ; 0) = Symbol('gamma')(Symbol('alpha'), x)" ],
"freeVariables" : [ "Symbol('alpha')", "Symbol('gamma')", "x" ],
"tokenTranslations" : {
"\\gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\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"
}
}
},
"Maple" : {
"translation" : "gamma(alpha , x ; 0) = gamma(alpha , x)",
"translationInformation" : {
"subEquations" : [ "gamma(alpha , x ; 0) = gamma(alpha , x)" ],
"freeVariables" : [ "alpha", "gamma", "x" ],
"tokenTranslations" : {
"\\gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\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"
}
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 0,
"word" : 2
} ],
"includes" : [ "\\Gamma(\\alpha,x;0)=\\Gamma(\\alpha,x)" ],
"isPartOf" : [ "\\Gamma(\\alpha,x;0)=\\Gamma(\\alpha,x)" ],
"definiens" : [ {
"definition" : "advantage",
"score" : 0.7125985104912714
}, {
"definition" : "associated Anger -- Weber function",
"score" : 0.6460746792928004
}, {
"definition" : "type incomplete-version of Bessel function",
"score" : 0.6460746792928004
}, {
"definition" : "example",
"score" : 0.5500952380952381
}, {
"definition" : "Digital Library of Mathematical Functions",
"score" : 0.5049074255814494
} ]
}