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 192/24 = 8 = 2 \times 4}
... is translated to the CAS output ...
Semantic latex: 192/24 = 8 = 2 \times 4
Confidence: 0
Mathematica
Translation: 192/24 == 8 == 2 * 4
Information
Sub Equations
- 192/24 = 8
- 8 = 2 * 4
Symbol info
- was translated to: *
Tests
Symbolic
Test expression: (192/24)-(8)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Test expression: (8)-(2 * 4)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: 192/24 == 8 == 2 * 4
Information
Sub Equations
- 192/24 = 8
- 8 = 2 * 4
Symbol info
- was translated to: *
Tests
Symbolic
Numeric
Maple
Translation: 192/24 = 8 = 2 * 4
Information
Sub Equations
- 192/24 = 8
- 8 = 2 * 4
Symbol info
- was translated to: *
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- TeX Source
- link
- Formula
- Gold ID
- time
Complete translation information:
{
"id" : "FORMULA_8c78ef87048e61947a6d7d4b5e06aa63",
"formula" : "192/24 = 8 = 2 \\times 4",
"semanticFormula" : "192/24 = 8 = 2 \\times 4",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "192/24 == 8 == 2 * 4",
"translationInformation" : {
"subEquations" : [ "192/24 = 8", "8 = 2 * 4" ],
"tokenTranslations" : {
"\\times" : "was translated to: *"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "ERROR",
"numberOfTests" : 2,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 2,
"crashed" : false,
"testCalculationsGroup" : [ {
"lhs" : "192/24",
"rhs" : "8",
"testExpression" : "(192/24)-(8)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
}, {
"lhs" : "8",
"rhs" : "2 * 4",
"testExpression" : "(8)-(2 * 4)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "192/24 == 8 == 2 * 4",
"translationInformation" : {
"subEquations" : [ "192/24 = 8", "8 = 2 * 4" ],
"tokenTranslations" : {
"\\times" : "was translated to: *"
}
}
},
"Maple" : {
"translation" : "192/24 = 8 = 2 * 4",
"translationInformation" : {
"subEquations" : [ "192/24 = 8", "8 = 2 * 4" ],
"tokenTranslations" : {
"\\times" : "was translated to: *"
}
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 0,
"word" : 8
} ],
"includes" : [ "192/24 = 8 = 2" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "TeX Source",
"score" : 0.722
}, {
"definition" : "link",
"score" : 0.7125985104912714
}, {
"definition" : "Formula",
"score" : 0.6859086196238077
}, {
"definition" : "Gold ID",
"score" : 0.6859086196238077
}, {
"definition" : "time",
"score" : 0.6859086196238077
} ]
}