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 \zeta(x)}
... is translated to the CAS output ...
Semantic latex: \Riemannzeta@{x}
Confidence: 0.90733333333333
Mathematica
Translation: Zeta[x]
Information
Sub Equations
- Zeta[x]
Free variables
- x
Symbol info
- Riemann zeta function; Example: \Riemannzeta@{s}
Will be translated to: Zeta[$0] Relevant links to definitions: DLMF: http://dlmf.nist.gov/25.2#E1 Mathematica: https://reference.wolfram.com/language/ref/Zeta.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \Riemannzeta [\Riemannzeta]
Tests
Symbolic
Numeric
Maple
Translation: Zeta(x)
Information
Sub Equations
- Zeta(x)
Free variables
- x
Symbol info
- Riemann zeta function; Example: \Riemannzeta@{s}
Will be translated to: Zeta($0) Relevant links to definitions: DLMF: http://dlmf.nist.gov/25.2#E1 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=Zeta
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- case
- modulo
- Riemann zeta function
- D.H. Lehmer
- maximum value
- minimum
- definition
Complete translation information:
{
"id" : "FORMULA_b431ed872884c2829589ed841d5f1335",
"formula" : "\\zeta(x)",
"semanticFormula" : "\\Riemannzeta@{x}",
"confidence" : 0.9073333333333333,
"translations" : {
"Mathematica" : {
"translation" : "Zeta[x]",
"translationInformation" : {
"subEquations" : [ "Zeta[x]" ],
"freeVariables" : [ "x" ],
"tokenTranslations" : {
"\\Riemannzeta" : "Riemann zeta function; Example: \\Riemannzeta@{s}\nWill be translated to: Zeta[$0]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/25.2#E1\nMathematica: https://reference.wolfram.com/language/ref/Zeta.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: \\Riemannzeta [\\Riemannzeta]"
}
},
"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" : "Zeta(x)",
"translationInformation" : {
"subEquations" : [ "Zeta(x)" ],
"freeVariables" : [ "x" ],
"tokenTranslations" : {
"\\Riemannzeta" : "Riemann zeta function; Example: \\Riemannzeta@{s}\nWill be translated to: Zeta($0)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/25.2#E1\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=Zeta"
}
},
"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" : 10,
"sentence" : 2,
"word" : 28
} ],
"includes" : [ "x" ],
"isPartOf" : [ "M_n = \\frac{2\\zeta(n)n!}{(2\\pi)^n}", "\\textstyle \\zeta(-n) = \\frac{(-1)^n}{n+1}B_{n+1}", "m_n = \\frac{-2\\zeta(n)n!}{(2\\pi)^n}" ],
"definiens" : [ {
"definition" : "case",
"score" : 0.8753892604563361
}, {
"definition" : "modulo",
"score" : 0.8753892604563361
}, {
"definition" : "Riemann zeta function",
"score" : 0.722
}, {
"definition" : "D.H. Lehmer",
"score" : 0.6954080343007951
}, {
"definition" : "maximum value",
"score" : 0.6954080343007951
}, {
"definition" : "minimum",
"score" : 0.6954080343007951
}, {
"definition" : "definition",
"score" : 0.32739553012332934
} ]
}