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