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 \mathrm{H}_n(x)}
... is translated to the CAS output ...
Semantic latex: \StruveH{n}@{x}
Confidence: 0.6805
Mathematica
Translation: StruveH[n, x]
Information
Sub Equations
- StruveH[n, x]
Free variables
- n
- x
Symbol info
- Struve function; Example: \StruveH{\nu}@{z}
Will be translated to: StruveH[$0, $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/11.2#E1 Mathematica: https://reference.wolfram.com/language/ref/StruveH.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \StruveH [\StruveH]
Tests
Symbolic
Numeric
Maple
Translation: StruveH(n, x)
Information
Sub Equations
- StruveH(n, x)
Free variables
- n
- x
Symbol info
- Struve function; Example: \StruveH{\nu}@{z}
Will be translated to: StruveH($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/11.2#E1 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=StruveH
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_6de914ff4efc3e766010f298f87691b1",
"formula" : "\\mathrm{H}_n(x)",
"semanticFormula" : "\\StruveH{n}@{x}",
"confidence" : 0.6805,
"translations" : {
"Mathematica" : {
"translation" : "StruveH[n, x]",
"translationInformation" : {
"subEquations" : [ "StruveH[n, x]" ],
"freeVariables" : [ "n", "x" ],
"tokenTranslations" : {
"\\StruveH" : "Struve function; Example: \\StruveH{\\nu}@{z}\nWill be translated to: StruveH[$0, $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/11.2#E1\nMathematica: https://reference.wolfram.com/language/ref/StruveH.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: \\StruveH [\\StruveH]"
}
},
"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" : "StruveH(n, x)",
"translationInformation" : {
"subEquations" : [ "StruveH(n, x)" ],
"freeVariables" : [ "n", "x" ],
"tokenTranslations" : {
"\\StruveH" : "Struve function; Example: \\StruveH{\\nu}@{z}\nWill be translated to: StruveH($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/11.2#E1\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=StruveH"
}
},
"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" : [ ],
"includes" : [ "\\mathbf{E}_{n}", "n", "x" ],
"isPartOf" : [ "\\begin{align}\\mathbf{E}_n(z) &= \\frac{1}{\\pi} \\sum_{k=0}^{\\left \\lfloor \\frac{n-1}{2} \\right \\rfloor} \\frac{\\Gamma \\left (k+ \\frac{1}{2} \\right) \\left (\\frac{z}{2} \\right )^{n-2k-1}}{\\Gamma \\left (n- k + \\frac{1}{2}\\right )} -\\mathbf{H}_n(z),\\\\\\mathbf{E}_{-n}(z) &= \\frac{(-1)^{n+1}}{\\pi}\\sum_{k=0}^{\\left \\lfloor \\frac{n-1}{2} \\right \\rfloor} \\frac{\\Gamma(n-k-\\frac{1}{2}) \\left (\\frac{z}{2} \\right )^{-n+2k+1}}{\\Gamma \\left (k+ \\frac{3}{2} \\right)}-\\mathbf{H}_{-n}(z). \\end{align}" ],
"definiens" : [ ]
}