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 p_n(x;a,b,c|q)=a^{-n}e^{-inu}(abe^{2iu},ac,ad;q)_n*_4\Phi_3(q^{-n},abcdq^{n-1},ae^{i{(t+2u)}},ae^{-it};abe^{2iu},ac,ad;q;q)}
... is translated to the CAS output ...
Semantic latex: p_n(x ; a , b , c|q) = a^{-n} \expe^{- \iunit nu} \qmultiPochhammersym{ab \expe^{2 \iunit u} , ac , ad}{q}{n} *_4 \Phi_3(q^{-n} , abcdq^{n-1} , a \expe^{\iunit{(t+2u)}} , a \expe^{- \iunit t} ; ab \expe^{2 \iunit u} , ac , ad ; q ; q)
Confidence: 0.86627249984448
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
Description
- polynomial
- term of basic hypergeometric function
- Pochhammer symbol
Complete translation information:
{
"id" : "FORMULA_67e28846328978f4e08bb6b69fe6c549",
"formula" : "p_n(x;a,b,c|q)=a^{-n}e^{-inu}(abe^{2iu},ac,ad;q)_n*_4\\Phi_3(q^{-n},abcdq^{n-1},ae^{i{(t+2u)}},ae^{-it};abe^{2iu},ac,ad;q;q)",
"semanticFormula" : "p_n(x ; a , b , c|q) = a^{-n} \\expe^{- \\iunit nu} \\qmultiPochhammersym{ab \\expe^{2 \\iunit u} , ac , ad}{q}{n} *_4 \\Phi_3(q^{-n} , abcdq^{n-1} , a \\expe^{\\iunit{(t+2u)}} , a \\expe^{- \\iunit t} ; ab \\expe^{2 \\iunit u} , ac , ad ; q ; q)",
"confidence" : 0.8662724998444776,
"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" : [ {
"section" : 1,
"sentence" : 0,
"word" : 15
} ],
"includes" : [ "q" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "polynomial",
"score" : 0.6859086196238077
}, {
"definition" : "term of basic hypergeometric function",
"score" : 0.6859086196238077
}, {
"definition" : "Pochhammer symbol",
"score" : 0.5988174995334326
} ]
}