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 a = b}
... is translated to the CAS output ...
Semantic latex: a = b
Confidence: 0
Mathematica
Translation: a == b
Information
Sub Equations
- a = b
Free variables
- a
- b
Tests
Symbolic
Test expression: (a)-(b)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: a == b
Information
Sub Equations
- a = b
Free variables
- a
- b
Tests
Symbolic
Numeric
Maple
Translation: a = b
Information
Sub Equations
- a = b
Free variables
- a
- b
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- circle
- ellipse with equal axis
- eccentricity
- ellipse
Complete translation information:
{
"id" : "FORMULA_e62d239822831122dd571c0d362408f7",
"formula" : "a = b",
"semanticFormula" : "a = b",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "a == b",
"translationInformation" : {
"subEquations" : [ "a = b" ],
"freeVariables" : [ "a", "b" ]
},
"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" : "a",
"rhs" : "b",
"testExpression" : "(a)-(b)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "a == b",
"translationInformation" : {
"subEquations" : [ "a = b" ],
"freeVariables" : [ "a", "b" ]
}
},
"Maple" : {
"translation" : "a = b",
"translationInformation" : {
"subEquations" : [ "a = b" ],
"freeVariables" : [ "a", "b" ]
}
}
},
"positions" : [ {
"section" : 5,
"sentence" : 1,
"word" : 6
}, {
"section" : 7,
"sentence" : 14,
"word" : 2
} ],
"includes" : [ "a", "b" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "circle",
"score" : 0.6769688955159846
}, {
"definition" : "ellipse with equal axis",
"score" : 0.6687181434333315
}, {
"definition" : "eccentricity",
"score" : 0.5816270233429564
}, {
"definition" : "ellipse",
"score" : 0.3515985104912858
} ]
}