LaTeX to CAS translator
Jump to navigation
Jump to search
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 x\in[-a,a],}
... is translated to the CAS output ...
Semantic latex: x\in[-a,a]
Confidence: 0
Mathematica
Translation: - a <= x <= a
Information
Free variables
- a
- x
Tests
Symbolic
Numeric
SymPy
Translation: - a <= x <= a
Information
Free variables
- a
- x
Tests
Symbolic
Numeric
Maple
Translation: - a <= x <= a
Information
Free variables
- a
- x
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- top half of the ellipse
- curve
Complete translation information:
{
"id" : "FORMULA_532c85375d1f6fdc1045c02460a5fb9c",
"formula" : "x\\in[-a,a]",
"semanticFormula" : "x\\in[-a,a]",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "- a <= x <= a",
"translationInformation" : {
"freeVariables" : [ "a", "x" ]
},
"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" : "- a <= x <= a",
"translationInformation" : {
"freeVariables" : [ "a", "x" ]
},
"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" : "- a <= x <= a",
"translationInformation" : {
"freeVariables" : [ "a", "x" ]
},
"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" : [ {
"section" : 36,
"sentence" : 5,
"word" : 1
} ],
"includes" : [ "a", "a,\\, b", "a,b", "x", "a,\\; b", "[-a,a]" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "top half of the ellipse",
"score" : 0.7125985104912714
}, {
"definition" : "curve",
"score" : 0.6859086196238077
} ]
}