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 a=(\alpha+\beta)/2,b=a+N,c=(\beta-\alpha)/2}
... is translated to the CAS output ...
Semantic latex: a=(\alpha+\beta)/2,b=a+N,c=(\beta-\alpha)/2
Confidence: 0
Mathematica
Translation: a == (\[Alpha]+ \[Beta])/2 b == a + N , c == (\[Beta]- \[Alpha])/2
Information
Sub Equations
- (\[Alpha]+ \[Beta])/2
b = a + N , c
Free variables
- N
- \[Alpha]
- \[Beta]
- a
- b
- c
Symbol info
- Could be the second Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
Tests
Symbolic
Numeric
SymPy
Translation: a == (Symbol('alpha')+ Symbol('beta'))/2 b == a + N , c == (Symbol('beta')- Symbol('alpha'))/2
Information
Sub Equations
- (Symbol('alpha')+ Symbol('beta'))/2
b = a + N , c
Free variables
- N
- Symbol('alpha')
- Symbol('beta')
- a
- b
- c
Symbol info
- Could be the second Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
Tests
Symbolic
Numeric
Maple
Translation: a = (alpha + beta)/2; b = a + N , c = (beta - alpha)/2
Information
Sub Equations
- (alpha + beta)/2; b = a + N , c
Free variables
- N
- a
- alpha
- b
- beta
- c
Symbol info
- Could be the second Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
Tests
Symbolic
Numeric
Dependency Graph Information
Description
- parameter
- Hahn polynomial
- uniform lattice
Complete translation information:
{
"id" : "FORMULA_90664c35d0bb6c435a0d1c4555d38bed",
"formula" : "a=(\\alpha+\\beta)/2,b=a+N,c=(\\beta-\\alpha)/2",
"semanticFormula" : "a=(\\alpha+\\beta)/2,b=a+N,c=(\\beta-\\alpha)/2",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "a == (\\[Alpha]+ \\[Beta])/2\n b == a + N , c == (\\[Beta]- \\[Alpha])/2",
"translationInformation" : {
"subEquations" : [ "(\\[Alpha]+ \\[Beta])/2\n b = a + N , c" ],
"freeVariables" : [ "N", "\\[Alpha]", "\\[Beta]", "a", "b", "c" ],
"tokenTranslations" : {
"\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
}
}
},
"SymPy" : {
"translation" : "a == (Symbol('alpha')+ Symbol('beta'))/2\n b == a + N , c == (Symbol('beta')- Symbol('alpha'))/2",
"translationInformation" : {
"subEquations" : [ "(Symbol('alpha')+ Symbol('beta'))/2\n b = a + N , c" ],
"freeVariables" : [ "N", "Symbol('alpha')", "Symbol('beta')", "a", "b", "c" ],
"tokenTranslations" : {
"\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
}
}
},
"Maple" : {
"translation" : "a = (alpha + beta)/2; b = a + N , c = (beta - alpha)/2",
"translationInformation" : {
"subEquations" : [ "(alpha + beta)/2; b = a + N , c" ],
"freeVariables" : [ "N", "a", "alpha", "b", "beta", "c" ],
"tokenTranslations" : {
"\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
}
}
}
},
"positions" : [ {
"section" : 3,
"sentence" : 0,
"word" : 21
} ],
"includes" : [ ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "parameter",
"score" : 0.6859086196238077
}, {
"definition" : "Hahn polynomial",
"score" : 0.6460746792928004
}, {
"definition" : "uniform lattice",
"score" : 0.6460746792928004
} ]
}