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)+\Gamma(\alpha,x;b)=2b^\frac{\alpha}{2}K_\alpha(2\sqrt b)}
... is translated to the CAS output ...
Semantic latex: \gamma(\alpha,x;b)+\Gamma(\alpha,x;b)=2b^\frac{\alpha}{2}K_\alpha(2\sqrt b)
Confidence: 0
Mathematica
Translation: \[Gamma][\[Alpha], x ; b]+ \[CapitalGamma][\[Alpha], x ; b] == 2*(b)^(Divide[\[Alpha],2])* Subscript[K, \[Alpha]][2*Sqrt[b]]
Information
Sub Equations
- \[Gamma][\[Alpha], x ; b]+ \[CapitalGamma][\[Alpha], x ; b] = 2*(b)^(Divide[\[Alpha],2])* Subscript[K, \[Alpha]][2*Sqrt[b]]
Free variables
- \[Alpha]
- \[CapitalGamma]
- \[Gamma]
- b
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- 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.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: Symbol('gamma')(Symbol('alpha'), x ; b)+ Symbol('Gamma')(Symbol('alpha'), x ; b) == 2*(b)**((Symbol('alpha'))/(2))* Symbol('{K}_{Symbol('alpha')}')(2*sqrt(b))
Information
Sub Equations
- Symbol('gamma')(Symbol('alpha'), x ; b)+ Symbol('Gamma')(Symbol('alpha'), x ; b) = 2*(b)**((Symbol('alpha'))/(2))* Symbol('{K}_{Symbol('alpha')}')(2*sqrt(b))
Free variables
- Symbol('Gamma')
- Symbol('alpha')
- Symbol('gamma')
- b
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- 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.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: gamma(alpha , x ; b)+ Gamma(alpha , x ; b) = 2*(b)^((alpha)/(2))* K[alpha](2*sqrt(b))
Information
Sub Equations
- gamma(alpha , x ; b)+ Gamma(alpha , x ; b) = 2*(b)^((alpha)/(2))* K[alpha](2*sqrt(b))
Free variables
- Gamma
- alpha
- b
- gamma
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- 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.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Dependency Graph Information
Description
- advantage
- associated Anger -- Weber function
- type incomplete-version of Bessel function
- example
- Digital Library of Mathematical Functions
Complete translation information:
{
"id" : "FORMULA_e896ade5ca052f1eff24aaf9237b0517",
"formula" : "\\gamma(\\alpha,x;b)+\\Gamma(\\alpha,x;b)=2b^\\frac{\\alpha}{2}K_\\alpha(2\\sqrt b)",
"semanticFormula" : "\\gamma(\\alpha,x;b)+\\Gamma(\\alpha,x;b)=2b^\\frac{\\alpha}{2}K_\\alpha(2\\sqrt b)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[Gamma][\\[Alpha], x ; b]+ \\[CapitalGamma][\\[Alpha], x ; b] == 2*(b)^(Divide[\\[Alpha],2])* Subscript[K, \\[Alpha]][2*Sqrt[b]]",
"translationInformation" : {
"subEquations" : [ "\\[Gamma][\\[Alpha], x ; b]+ \\[CapitalGamma][\\[Alpha], x ; b] = 2*(b)^(Divide[\\[Alpha],2])* Subscript[K, \\[Alpha]][2*Sqrt[b]]" ],
"freeVariables" : [ "\\[Alpha]", "\\[CapitalGamma]", "\\[Gamma]", "b", "x" ],
"tokenTranslations" : {
"K" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\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",
"\\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" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"SymPy" : {
"translation" : "Symbol('gamma')(Symbol('alpha'), x ; b)+ Symbol('Gamma')(Symbol('alpha'), x ; b) == 2*(b)**((Symbol('alpha'))/(2))* Symbol('{K}_{Symbol('alpha')}')(2*sqrt(b))",
"translationInformation" : {
"subEquations" : [ "Symbol('gamma')(Symbol('alpha'), x ; b)+ Symbol('Gamma')(Symbol('alpha'), x ; b) = 2*(b)**((Symbol('alpha'))/(2))* Symbol('{K}_{Symbol('alpha')}')(2*sqrt(b))" ],
"freeVariables" : [ "Symbol('Gamma')", "Symbol('alpha')", "Symbol('gamma')", "b", "x" ],
"tokenTranslations" : {
"K" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\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",
"\\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" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"Maple" : {
"translation" : "gamma(alpha , x ; b)+ Gamma(alpha , x ; b) = 2*(b)^((alpha)/(2))* K[alpha](2*sqrt(b))",
"translationInformation" : {
"subEquations" : [ "gamma(alpha , x ; b)+ Gamma(alpha , x ; b) = 2*(b)^((alpha)/(2))* K[alpha](2*sqrt(b))" ],
"freeVariables" : [ "Gamma", "alpha", "b", "gamma", "x" ],
"tokenTranslations" : {
"K" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\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",
"\\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" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 0,
"word" : 4
} ],
"includes" : [ ],
"isPartOf" : [ ],
"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
} ]
}