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 p_n(x;a|q) = {}_2\phi_1(q^{-n},0;aq;q,qx) = \frac{1}{(a^{-1}q^{-n};q)_n}{}_2\phi_0(q^{-n},x^{-1};;q,x/a)}
... is translated to the CAS output ...
Semantic latex: p_n(x ; a|q) ={}_2 \phi_1(q^{-n} , 0 ; aq ; q , qx) = \frac{1}{\qPochhammer{a^{-1} q^{-n}}{q}{n}}{}_2 \phi_0(q^{-n} , x^{-1} ; ; q , x / a)
Confidence: 0.74275169532929
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
- Failed to parse (syntax error): {\displaystyle ^{-1}}{}}
Is part of
Complete translation information:
{
"id" : "FORMULA_d7ea1994d0201f402af0cdf0cdc3956d",
"formula" : "p_n(x;a|q) = {}_2\\phi_1(q^{-n},0;aq;q,qx) = \\frac{1}{(a^{-1}q^{-n};q)_n}{}_2\\phi_0(q^{-n},x^{-1};;q,x/a)",
"semanticFormula" : "p_n(x ; a|q) ={}_2 \\phi_1(q^{-n} , 0 ; aq ; q , qx) = \\frac{1}{\\qPochhammer{a^{-1} q^{-n}}{q}{n}}{}_2 \\phi_0(q^{-n} , x^{-1} ; ; q , x / a)",
"confidence" : 0.7427516953292874,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )"
}
},
"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) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )"
}
},
"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) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )"
}
},
"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" : [ "^{-1}", "^{-1} ;", "^{-1}}{}", "\\displaystyle p_n(x;a|q) = {}_2\\phi_1(q^{-n},0;aq;q,qx) = \\frac{1}{(a^{-1}q^{-n};q)_n}{}_2\\phi_0(q^{-n},x^{-1};;q,x/a)" ],
"isPartOf" : [ "\\displaystyle p_n(x;a|q) = {}_2\\phi_1(q^{-n},0;aq;q,qx) = \\frac{1}{(a^{-1}q^{-n};q)_n}{}_2\\phi_0(q^{-n},x^{-1};;q,x/a)" ],
"definiens" : [ ]
}