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 \delta\leq0.05 }
... is translated to the CAS output ...
Semantic latex: \delta\leq0.05
Confidence: 0
Mathematica
Translation: \[Delta] <= 0.05
Information
Sub Equations
- \[Delta] <= 0.05
Free variables
- \[Delta]
Symbol info
- Could be the first Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
Tests
Symbolic
Test expression: \[Delta]\leq0.05
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: Symbol('delta') <= 0.05
Information
Sub Equations
- Symbol('delta') <= 0.05
Free variables
- Symbol('delta')
Symbol info
- Could be the first Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
Tests
Symbolic
Numeric
Maple
Translation: delta <= 0.05
Information
Sub Equations
- delta <= 0.05
Free variables
- delta
Symbol info
- Could be the first Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
Tests
Symbolic
Numeric
Dependency Graph Information
Description
- accuracy
- argument
- first series
- next higher integer of the unique solution
- one
Complete translation information:
{
"id" : "FORMULA_2ab61d40dea597832d4ad1af2ee30f44",
"formula" : "\\delta\\leq0.05",
"semanticFormula" : "\\delta\\leq0.05",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[Delta] <= 0.05",
"translationInformation" : {
"subEquations" : [ "\\[Delta] <= 0.05" ],
"freeVariables" : [ "\\[Delta]" ],
"tokenTranslations" : {
"\\delta" : "Could be the first Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
}
},
"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" : "\\[Delta]",
"rhs" : "0.05",
"testExpression" : "\\[Delta]\\leq0.05",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "Symbol('delta') <= 0.05",
"translationInformation" : {
"subEquations" : [ "Symbol('delta') <= 0.05" ],
"freeVariables" : [ "Symbol('delta')" ],
"tokenTranslations" : {
"\\delta" : "Could be the first Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
}
}
},
"Maple" : {
"translation" : "delta <= 0.05",
"translationInformation" : {
"subEquations" : [ "delta <= 0.05" ],
"freeVariables" : [ "delta" ],
"tokenTranslations" : {
"\\delta" : "Could be the first Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
}
}
}
},
"positions" : [ {
"section" : 26,
"sentence" : 3,
"word" : 24
} ],
"includes" : [ ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "accuracy",
"score" : 0.722
}, {
"definition" : "argument",
"score" : 0.6859086196238077
}, {
"definition" : "first series",
"score" : 0.6859086196238077
}, {
"definition" : "next higher integer of the unique solution",
"score" : 0.6859086196238077
}, {
"definition" : "one",
"score" : 0.6859086196238077
} ]
}