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 c = a + 1}
... is translated to the CAS output ...
Semantic latex: c = a + 1
Confidence: 0
Mathematica
Translation: c == a + 1
Information
Sub Equations
- c = a + 1
Free variables
- a
- c
Tests
Symbolic
Test expression: (c)-(a + 1)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: c == a + 1
Information
Sub Equations
- c = a + 1
Free variables
- a
- c
Tests
Symbolic
Numeric
Maple
Translation: c = a + 1
Information
Sub Equations
- c = a + 1
Free variables
- a
- c
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- TeX Source
- link
- Formula
- Gold ID
- c
Complete translation information:
{
"id" : "FORMULA_aaffb0ad8dea17d68491d9fb6ebcfbe3",
"formula" : "c = a + 1",
"semanticFormula" : "c = a + 1",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "c == a + 1",
"translationInformation" : {
"subEquations" : [ "c = a + 1" ],
"freeVariables" : [ "a", "c" ]
},
"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" : "c",
"rhs" : "a + 1",
"testExpression" : "(c)-(a + 1)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "c == a + 1",
"translationInformation" : {
"subEquations" : [ "c = a + 1" ],
"freeVariables" : [ "a", "c" ]
}
},
"Maple" : {
"translation" : "c = a + 1",
"translationInformation" : {
"subEquations" : [ "c = a + 1" ],
"freeVariables" : [ "a", "c" ]
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 0,
"word" : 8
} ],
"includes" : [ "+ 1" ],
"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" : "c",
"score" : 0.6460746792928004
} ]
}