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{Gi}(x)}
... is translated to the CAS output ...
Semantic latex: \ScorerGi@{x}
Confidence: 0.71446280208853
Mathematica
Translation: ScorerGi[x]
Information
Sub Equations
- ScorerGi[x]
Free variables
- x
Symbol info
- Scorer function Gi; Example: \ScorerGi@{z}
Will be translated to: ScorerGi[$0] Relevant links to definitions: DLMF: http://dlmf.nist.gov/9.12#i Mathematica: https://reference.wolfram.com/language/ref/ScorerGi.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \ScorerGi [\ScorerGi]
Tests
Symbolic
Numeric
Maple
Translation: AiryBi(x)*(int(AiryAi(t), t = (x) .. infinity))+AiryAi(x)*(int(AiryBi(t), t = 0 .. (x)))
Information
Sub Equations
- AiryBi(x)*(int(AiryAi(t), t = (x) .. infinity))+AiryAi(x)*(int(AiryBi(t), t = 0 .. (x)))
Free variables
- x
Symbol info
- Scorer function Gi; Example: \ScorerGi@{z}
Will be translated to: Alternative translations: [AiryBi($0)*(int(AiryAi(t), t = ($0) .. infinity))+AiryAi($0)*(int(AiryBi(t), t = 0 .. ($0)))]Relevant links to definitions: DLMF: http://dlmf.nist.gov/9.12#i Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=Airy
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_d65daa1a5f69bdcdd4cc1088c9c1a8a3",
"formula" : "\\mathrm{Gi}(x)",
"semanticFormula" : "\\ScorerGi@{x}",
"confidence" : 0.7144628020885297,
"translations" : {
"Mathematica" : {
"translation" : "ScorerGi[x]",
"translationInformation" : {
"subEquations" : [ "ScorerGi[x]" ],
"freeVariables" : [ "x" ],
"tokenTranslations" : {
"\\ScorerGi" : "Scorer function Gi; Example: \\ScorerGi@{z}\nWill be translated to: ScorerGi[$0]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/9.12#i\nMathematica: https://reference.wolfram.com/language/ref/ScorerGi.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: \\ScorerGi [\\ScorerGi]"
}
},
"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" : "AiryBi(x)*(int(AiryAi(t), t = (x) .. infinity))+AiryAi(x)*(int(AiryBi(t), t = 0 .. (x)))",
"translationInformation" : {
"subEquations" : [ "AiryBi(x)*(int(AiryAi(t), t = (x) .. infinity))+AiryAi(x)*(int(AiryBi(t), t = 0 .. (x)))" ],
"freeVariables" : [ "x" ],
"tokenTranslations" : {
"\\ScorerGi" : "Scorer function Gi; Example: \\ScorerGi@{z}\nWill be translated to: \nAlternative translations: [AiryBi($0)*(int(AiryAi(t), t = ($0) .. infinity))+AiryAi($0)*(int(AiryBi(t), t = 0 .. ($0)))]Relevant links to definitions:\nDLMF: http://dlmf.nist.gov/9.12#i\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=Airy"
}
},
"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" : [ "x", "x)" ],
"isPartOf" : [ "\\begin{align} \\mathrm{Gi}(x) &{}= \\mathrm{Bi}(x) \\int_x^\\infty \\mathrm{Ai}(t) \\, dt + \\mathrm{Ai}(x) \\int_0^x \\mathrm{Bi}(t) \\, dt, \\\\ \\mathrm{Hi}(x) &{}= \\mathrm{Bi}(x) \\int_{-\\infty}^x \\mathrm{Ai}(t) \\, dt - \\mathrm{Ai}(x) \\int_{-\\infty}^x \\mathrm{Bi}(t) \\, dt. \\end{align}", "\\mathrm{Gi}(x) = \\frac{1}{\\pi} \\int_0^\\infty \\sin\\left(\\frac{t^3}{3} + xt\\right)\\, dt" ],
"definiens" : [ ]
}