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 \,\eta(s)=\Phi (-1,s,1).}
... is translated to the CAS output ...
Semantic latex: \Dedekindeta@{s} = \Phi(- 1 , s , 1)
Confidence: 0.60955221359772
Mathematica
Translation: DedekindEta[s] == \[CapitalPhi][- 1 , s , 1]
Information
Sub Equations
- DedekindEta[s] = \[CapitalPhi][- 1 , s , 1]
Free variables
- \[CapitalPhi]
- s
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- Dedikind's Eta function; Example: \Dedekindeta@{\tau}
Will be translated to: DedekindEta[$0] Relevant links to definitions: DLMF: http://dlmf.nist.gov/23.15#E9 Mathematica: https://reference.wolfram.com/language/ref/DedekindEta.html
Tests
Symbolic
Test expression: (DedekindEta[s])-(\[CapitalPhi]*(- 1 , s , 1))
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \Dedekindeta [\Dedekindeta]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \Dedekindeta [\Dedekindeta]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_4129a05d20ad04151538bc0da347a5e2",
"formula" : "\\eta(s)=\\Phi (-1,s,1)",
"semanticFormula" : "\\Dedekindeta@{s} = \\Phi(- 1 , s , 1)",
"confidence" : 0.609552213597722,
"translations" : {
"Mathematica" : {
"translation" : "DedekindEta[s] == \\[CapitalPhi][- 1 , s , 1]",
"translationInformation" : {
"subEquations" : [ "DedekindEta[s] = \\[CapitalPhi][- 1 , s , 1]" ],
"freeVariables" : [ "\\[CapitalPhi]", "s" ],
"tokenTranslations" : {
"\\Phi" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\Dedekindeta" : "Dedikind's Eta function; Example: \\Dedekindeta@{\\tau}\nWill be translated to: DedekindEta[$0]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/23.15#E9\nMathematica: https://reference.wolfram.com/language/ref/DedekindEta.html"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "ERROR",
"numberOfTests" : 1,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 1,
"crashed" : false,
"testCalculationsGroup" : [ {
"lhs" : "DedekindEta[s]",
"rhs" : "\\[CapitalPhi]*(- 1 , s , 1)",
"testExpression" : "(DedekindEta[s])-(\\[CapitalPhi]*(- 1 , s , 1))",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\Dedekindeta [\\Dedekindeta]"
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\Dedekindeta [\\Dedekindeta]"
}
}
}
},
"positions" : [ ],
"includes" : [ "\\,\\eta(s)=\\Phi (-1,s,1)", "\\Phi(z,s,a)", "s" ],
"isPartOf" : [ "\\,\\eta(s)=\\Phi (-1,s,1)" ],
"definiens" : [ ]
}