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 \alpha=q^{\alpha}}
... is translated to the CAS output ...
Semantic latex: \alpha=q^{\alpha}
Confidence: 0
Mathematica
Translation: \[Alpha] == (q)^\[Alpha]
Information
Sub Equations
- \[Alpha] = (q)^\[Alpha]
Free variables
- \[Alpha]
- q
Symbol info
- 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: (\[Alpha])-((q)^\[Alpha])
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: Symbol('alpha') == (q)**(Symbol('alpha'))
Information
Sub Equations
- Symbol('alpha') = (q)**(Symbol('alpha'))
Free variables
- Symbol('alpha')
- q
Symbol info
- 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: alpha = (q)^(alpha)
Information
Sub Equations
- alpha = (q)^(alpha)
Free variables
- alpha
- q
Symbol info
- 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
- q-Hahn polynomial
- Hahn polynomial
- substitution
- definition of q-Hahn polynomial
- limit q
- Quantum q-Krawtchouk polynomial
Complete translation information:
{
"id" : "FORMULA_6893e7f28a7ea954a58896aac60b4e55",
"formula" : "\\alpha=q^{\\alpha}",
"semanticFormula" : "\\alpha=q^{\\alpha}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[Alpha] == (q)^\\[Alpha]",
"translationInformation" : {
"subEquations" : [ "\\[Alpha] = (q)^\\[Alpha]" ],
"freeVariables" : [ "\\[Alpha]", "q" ],
"tokenTranslations" : {
"\\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" : "\\[Alpha]",
"rhs" : "(q)^\\[Alpha]",
"testExpression" : "(\\[Alpha])-((q)^\\[Alpha])",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "Symbol('alpha') == (q)**(Symbol('alpha'))",
"translationInformation" : {
"subEquations" : [ "Symbol('alpha') = (q)**(Symbol('alpha'))" ],
"freeVariables" : [ "Symbol('alpha')", "q" ],
"tokenTranslations" : {
"\\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" : "alpha = (q)^(alpha)",
"translationInformation" : {
"subEquations" : [ "alpha = (q)^(alpha)" ],
"freeVariables" : [ "alpha", "q" ],
"tokenTranslations" : {
"\\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" : 2,
"sentence" : 0,
"word" : 16
} ],
"includes" : [ "\\beta=q^{\\beta}" ],
"isPartOf" : [ "\\beta=q^{\\beta}" ],
"definiens" : [ {
"definition" : "q-Hahn polynomial",
"score" : 0.8335022225110844
}, {
"definition" : "Hahn polynomial",
"score" : 0.8227064776126595
}, {
"definition" : "substitution",
"score" : 0.722
}, {
"definition" : "definition of q-Hahn polynomial",
"score" : 0.6954080343007951
}, {
"definition" : "limit q",
"score" : 0.6288842031023242
}, {
"definition" : "Quantum q-Krawtchouk polynomial",
"score" : 0.6288842031023242
} ]
}