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 \log\left( \frac{G(1-z)}{G(z)} \right)= z\log\left(\frac{\sin\pi z}{\pi} \right)+\log\Gamma(z)+\frac{1}{2\pi}\operatorname{Cl}_2(2\pi z) }
... is translated to the CAS output ...
Semantic latex: \log(\frac{\BarnesG@{1 - z}}{\BarnesG@{z}}) = z \log(\frac{\sin \cpi z}{\cpi}) + \log \EulerGamma@{z} + \frac{1}{2 \cpi} \operatorname{Cl}_2(2 \cpi z)
Confidence: 0.65800408394759
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \EulerGamma [\EulerGamma]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \BarnesG [\BarnesG]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \BarnesG [\BarnesG]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_7dd2a2dcfba49d32ee06555094b04065",
"formula" : "\\log\\left( \\frac{G(1-z)}{G(z)} \\right)= z\\log\\left(\\frac{\\sin\\pi z}{\\pi}\n\\right)+\\log\\Gamma(z)+\\frac{1}{2\\pi}\\operatorname{Cl}_2(2\\pi z)",
"semanticFormula" : "\\log(\\frac{\\BarnesG@{1 - z}}{\\BarnesG@{z}}) = z \\log(\\frac{\\sin \\cpi z}{\\cpi}) + \\log \\EulerGamma@{z} + \\frac{1}{2 \\cpi} \\operatorname{Cl}_2(2 \\cpi z)",
"confidence" : 0.6580040839475927,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \\EulerGamma [\\EulerGamma]"
}
},
"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: \\BarnesG [\\BarnesG]"
}
},
"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: \\BarnesG [\\BarnesG]"
}
},
"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" : [ "\\log\\left( \\frac{G(1-z)}{G(z)} \\right)= z\\log\\left(\\frac{\\sin\\pi z}{\\pi}\\right)+\\log\\Gamma(z)+\\frac{1}{2\\pi}\\operatorname{Cl}_2(2\\pi z)", "\\,\\Gamma(x)", "z", "\\, 2\\pi", "G" ],
"isPartOf" : [ "\\log\\left( \\frac{G(1-z)}{G(z)} \\right)= z\\log\\left(\\frac{\\sin\\pi z}{\\pi}\\right)+\\log\\Gamma(z)+\\frac{1}{2\\pi}\\operatorname{Cl}_2(2\\pi z)" ],
"definiens" : [ ]
}