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\mid q)=\frac{(ab,ac;q)_n}{a^n}\cdot {_3\Phi_2}(q^-n,ae^{i\theta},ae^{-i\theta}; ab, ac \mid q;q)}
... is translated to the CAS output ...
Semantic latex: p_n(x ; a , b , c \mid q) = \frac{(ab,ac;q)_n}{a^n} \cdot{_3\Phi_2}(q^- n , ae^{\iunit \theta} , ae^{- \iunit \theta} ; ab , ac \mid q ; q)
Confidence: 0
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) No translation possible for given token: Unknown relation. Cannot translate: \mid [\mid]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Unknown relation. Cannot translate: \mid [\mid]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Unknown relation. Cannot translate: \mid [\mid]
Tests
Symbolic
Numeric
Dependency Graph Information
Description
- q
- ab
- ac
- ae
- mid q
- n
- theta
- TeX Source
- b
- c
- cdot
- Formula
- Gold ID
- i
- link
- p_n
- x
Complete translation information:
{
"id" : "FORMULA_95daf919f18506606090e49a38d1c1a6",
"formula" : "p_n(x;a,b,c\\mid q)=\\frac{(ab,ac;q)_n}{a^n}\\cdot {_3\\Phi_2}(q^-n,ae^{i\\theta},ae^{-i\\theta}; ab, ac \\mid q;q)",
"semanticFormula" : "p_n(x ; a , b , c \\mid q) = \\frac{(ab,ac;q)_n}{a^n} \\cdot{_3\\Phi_2}(q^- n , ae^{\\iunit \\theta} , ae^{- \\iunit \\theta} ; ab , ac \\mid q ; q)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) No translation possible for given token: Unknown relation. Cannot translate: \\mid [\\mid]"
}
},
"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: Unknown relation. Cannot translate: \\mid [\\mid]"
}
},
"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: Unknown relation. Cannot translate: \\mid [\\mid]"
}
},
"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" : 8
} ],
"includes" : [ ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "q",
"score" : 0.8880695149604544
}, {
"definition" : "ab",
"score" : 0.8172610534710303
}, {
"definition" : "ac",
"score" : 0.8172610534710303
}, {
"definition" : "ae",
"score" : 0.8172610534710303
}, {
"definition" : "mid q",
"score" : 0.8172610534710303
}, {
"definition" : "n",
"score" : 0.8172610534710303
}, {
"definition" : "theta",
"score" : 0.8172610534710303
}, {
"definition" : "TeX Source",
"score" : 0.722
}, {
"definition" : "b",
"score" : 0.6584038577190456
}, {
"definition" : "c",
"score" : 0.6584038577190456
}, {
"definition" : "cdot",
"score" : 0.6584038577190456
}, {
"definition" : "Formula",
"score" : 0.6584038577190456
}, {
"definition" : "Gold ID",
"score" : 0.6584038577190456
}, {
"definition" : "i",
"score" : 0.6584038577190456
}, {
"definition" : "link",
"score" : 0.6584038577190456
}, {
"definition" : "p_n",
"score" : 0.6584038577190456
}, {
"definition" : "x",
"score" : 0.6584038577190456
} ]
}