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,d)= i^n\frac{(a+c)_n(a+d)_n}{n!}{}_3F_2\left( \begin{array}{c} -n, n+a+b+c+d-1, a+ix \\ a+c, a+d \end{array} ; 1\right)}
... is translated to the CAS output ...
Semantic latex: \contHahnpolyp{n}@{x}{a}{b}{c}{d} = \iunit^n \frac{(a+c)_n(a+d)_n}{n!}{}_3 F_2(\begin{array}{column-style}- n , n + a + b + c + d - 1 , a + \iunit x a+c, a+d\end{array} ; 1)
Confidence: 0.71685960350077
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) An unknown or missing element occurred: Empty expression tag. Unable to translate:
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \contHahnpolyp [\contHahnpolyp]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \contHahnpolyp [\contHahnpolyp]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- term
- detailed list
- hypergeometric function
- property
Complete translation information:
{
"id" : "FORMULA_136202e570dbc3fed9ef270fa9132dbe",
"formula" : "p_n(x;a,b,c,d)= i^n\\frac{(a+c)_n(a+d)_n}{n!}{}_3F_2\\left( \\begin{array}{c} -n, n+a+b+c+d-1, a+ix \\\\ a+c, a+d \\end{array} ; 1\\right)",
"semanticFormula" : "\\contHahnpolyp{n}@{x}{a}{b}{c}{d} = \\iunit^n \\frac{(a+c)_n(a+d)_n}{n!}{}_3 F_2(\\begin{array}{column-style}- n , n + a + b + c + d - 1 , a + \\iunit x a+c, a+d\\end{array} ; 1)",
"confidence" : 0.7168596035007688,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Empty expression tag. Unable to translate: "
}
},
"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: \\contHahnpolyp [\\contHahnpolyp]"
}
},
"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: \\contHahnpolyp [\\contHahnpolyp]"
}
},
"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" : 0,
"sentence" : 1,
"word" : 10
} ],
"includes" : [ "p_{n}(x;a,b,c,d)", "F_{n}" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "term",
"score" : 0.6859086196238077
}, {
"definition" : "detailed list",
"score" : 0.6460746792928004
}, {
"definition" : "hypergeometric function",
"score" : 0.6460746792928004
}, {
"definition" : "property",
"score" : 0.5988174995334326
} ]
}