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 {}_2\phi_1(A,B;C;q,z):= \sum_{n=0}^\infty\frac{(A;q)_n(B;q)_n}{(C;q)_n(q;q)_n}z^n,\quad (A;q)_0:=1,\quad(A;q)_n:=\prod_{k=0}^{n-1}(1-Aq^k).}
... is translated to the CAS output ...
Semantic latex: \qgenhyperphi{2}{1}@{A , B}{C}{q}{z} : = \sum_{n=0}^\infty \frac{(A;q)_n(B;q)_n}{(C;q)_n(q;q)_n} z^n , \quad(A ; q)_0 : = 1 , \quad(A ; q)_n : = \prod_{k=0}^{n-1}(1 - Aq^k)
Confidence: 0.57762949513187
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) An unknown or missing element occurred: Unknown MathTerm Tag: colon for : [:]
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
Description
- basic hypergeometric matrix function
Complete translation information:
{
"id" : "FORMULA_3b37a1be49c021c5431974e39c1d6529",
"formula" : "{}_2\\phi_1(A,B;C;q,z):= \\sum_{n=0}^\\infty\\frac{(A;q)_n(B;q)_n}{(C;q)_n(q;q)_n}z^n,\\quad (A;q)_0:=1,\\quad(A;q)_n:=\\prod_{k=0}^{n-1}(1-Aq^k)",
"semanticFormula" : "\\qgenhyperphi{2}{1}@{A , B}{C}{q}{z} : = \\sum_{n=0}^\\infty \\frac{(A;q)_n(B;q)_n}{(C;q)_n(q;q)_n} z^n , \\quad(A ; q)_0 : = 1 , \\quad(A ; q)_n : = \\prod_{k=0}^{n-1}(1 - Aq^k)",
"confidence" : 0.5776294951318733,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Unknown MathTerm Tag: colon for : [:]"
}
},
"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" : [ {
"section" : 7,
"sentence" : 0,
"word" : 11
} ],
"includes" : [ "z", "x_{n}", "n", "q^{n}", "q" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "basic hypergeometric matrix function",
"score" : 0.6859086196238077
} ]
}