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 \displaystyle c_n(q^{-x};a;q) = {}_2\phi_1(q^{-n},q^{-x};0;q,-q^{n+1}/a)}
... is translated to the CAS output ...
Semantic latex: c_n(q^{-x} ; a ; q) = \qgenhyperphi{2}{1}@{q^{-n} , q^{-x}}{0}{q}{- q^{n+1} / a}
Confidence: 0.4332221213489
Mathematica
Translation: Subscript[c, n][(q)^(- x); a ; q] == QHypergeometricPFQ[{(q)^(- n), (q)^(- x)},{0},q,- (q)^(n + 1)/a]
Information
Sub Equations
- Subscript[c, n][(q)^(- x); a ; q] = QHypergeometricPFQ[{(q)^(- n), (q)^(- x)},{0},q,- (q)^(n + 1)/a]
Free variables
- a
- n
- q
- x
Symbol info
- basic hypergeometric (or $q$-hypergeometric) function; Example: \qgenhyperphi{r}{s}@@@{a_1,...,a_r}{b_1,...,b_s}{q}{z}
Will be translated to: QHypergeometricPFQ[{$2},{$3},$4,$5] Relevant links to definitions: DLMF: http://dlmf.nist.gov/17.4#E1 Mathematica: https://reference.wolfram.com/language/ref/QHypergeometricPFQ.html
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \qgenhyperphi [\qgenhyperphi]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \qgenhyperphi [\qgenhyperphi]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_738d8499ee4772023bda6917eb9a2ba2",
"formula" : "c_n(q^{-x};a;q) = {}_2\\phi_1(q^{-n},q^{-x};0;q,-q^{n+1}/a)",
"semanticFormula" : "c_n(q^{-x} ; a ; q) = \\qgenhyperphi{2}{1}@{q^{-n} , q^{-x}}{0}{q}{- q^{n+1} / a}",
"confidence" : 0.433222121348905,
"translations" : {
"Mathematica" : {
"translation" : "Subscript[c, n][(q)^(- x); a ; q] == QHypergeometricPFQ[{(q)^(- n), (q)^(- x)},{0},q,- (q)^(n + 1)/a]",
"translationInformation" : {
"subEquations" : [ "Subscript[c, n][(q)^(- x); a ; q] = QHypergeometricPFQ[{(q)^(- n), (q)^(- x)},{0},q,- (q)^(n + 1)/a]" ],
"freeVariables" : [ "a", "n", "q", "x" ],
"tokenTranslations" : {
"\\qgenhyperphi" : "basic hypergeometric (or $q$-hypergeometric) function; Example: \\qgenhyperphi{r}{s}@@@{a_1,...,a_r}{b_1,...,b_s}{q}{z}\nWill be translated to: QHypergeometricPFQ[{$2},{$3},$4,$5]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/17.4#E1\nMathematica: https://reference.wolfram.com/language/ref/QHypergeometricPFQ.html",
"c" : "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" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\qgenhyperphi [\\qgenhyperphi]"
}
},
"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" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\qgenhyperphi [\\qgenhyperphi]"
}
},
"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" : [ "\\displaystyle c_n(q^{-x};a;q) = {}_2\\phi_1(q^{-n},q^{-x};0;q,-q^{n+1}/a)" ],
"isPartOf" : [ "\\displaystyle c_n(q^{-x};a;q) = {}_2\\phi_1(q^{-n},q^{-x};0;q,-q^{n+1}/a)" ],
"definiens" : [ ]
}