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 (\theta)_n}
... is translated to the CAS output ...
Semantic latex: \Pochhammersym{\theta}{n}
Confidence: 0.90935324020626
Mathematica
Translation: Pochhammer[\[Theta], n]
Information
Sub Equations
- Pochhammer[\[Theta], n]
Free variables
- \[Theta]
- n
Symbol info
- Pochhammer symbol; Example: \Pochhammersym{a}{n}
Will be translated to: Pochhammer[$0, $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/5.2#iii Mathematica: https://reference.wolfram.com/language/ref/Pochhammer.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \Pochhammersym [\Pochhammersym]
Tests
Symbolic
Numeric
Maple
Translation: pochhammer(theta, n)
Information
Sub Equations
- pochhammer(theta, n)
Free variables
- n
- theta
Symbol info
- Pochhammer symbol; Example: \Pochhammersym{a}{n}
Will be translated to: pochhammer($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/5.2#iii Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=pochhammer
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- factorial
- special case of the Jacobi polynomial
- fact finite
- series
- Gaussian hypergeometric series in certain case
Complete translation information:
{
"id" : "FORMULA_f03733b7d264b412181f65007123edb5",
"formula" : "(\\theta)_n",
"semanticFormula" : "\\Pochhammersym{\\theta}{n}",
"confidence" : 0.9093532402062573,
"translations" : {
"Mathematica" : {
"translation" : "Pochhammer[\\[Theta], n]",
"translationInformation" : {
"subEquations" : [ "Pochhammer[\\[Theta], n]" ],
"freeVariables" : [ "\\[Theta]", "n" ],
"tokenTranslations" : {
"\\Pochhammersym" : "Pochhammer symbol; Example: \\Pochhammersym{a}{n}\nWill be translated to: Pochhammer[$0, $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/5.2#iii\nMathematica: https://reference.wolfram.com/language/ref/Pochhammer.html"
}
},
"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: \\Pochhammersym [\\Pochhammersym]"
}
},
"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" : "pochhammer(theta, n)",
"translationInformation" : {
"subEquations" : [ "pochhammer(theta, n)" ],
"freeVariables" : [ "n", "theta" ],
"tokenTranslations" : {
"\\Pochhammersym" : "Pochhammer symbol; Example: \\Pochhammersym{a}{n}\nWill be translated to: pochhammer($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/5.2#iii\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=pochhammer"
}
},
"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" : 10,
"word" : 2
} ],
"includes" : [ "n", "\\theta" ],
"isPartOf" : [ "(2\\alpha)_{n}", "C_n^{(\\alpha)}(x) = \\frac{(2\\alpha)_n}{(\\alpha+\\frac{1}{2})_{n}}P_n^{(\\alpha-1/2,\\alpha-1/2)}(x)", "C_n^{(\\alpha)}(z)=\\frac{(2\\alpha)_n}{n!}\\,_2F_1\\left(-n,2\\alpha+n;\\alpha+\\frac{1}{2};\\frac{1-z}{2}\\right)" ],
"definiens" : [ {
"definition" : "factorial",
"score" : 0.8094283008158696
}, {
"definition" : "special case of the Jacobi polynomial",
"score" : 0.6699230544300447
}, {
"definition" : "fact finite",
"score" : 0.4111329742008307
}, {
"definition" : "series",
"score" : 0.40173148469210224
}, {
"definition" : "Gaussian hypergeometric series in certain case",
"score" : 0.3750415938246384
} ]
}