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 s = 1}
... is translated to the CAS output ...
Semantic latex: s = 1
Confidence: 0
Mathematica
Translation: s == 1
Information
Sub Equations
- s = 1
Free variables
- s
Tests
Symbolic
Test expression: (s)-(1)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: s == 1
Information
Sub Equations
- s = 1
Free variables
- s
Tests
Symbolic
Numeric
Maple
Translation: s = 1
Information
Sub Equations
- s = 1
Free variables
- s
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- simple pole with residue
Complete translation information:
{
"id" : "FORMULA_1ea6df72c31304a0064f61704390c3be",
"formula" : "s = 1",
"semanticFormula" : "s = 1",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "s == 1",
"translationInformation" : {
"subEquations" : [ "s = 1" ],
"freeVariables" : [ "s" ]
},
"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" : "s",
"rhs" : "1",
"testExpression" : "(s)-(1)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "s == 1",
"translationInformation" : {
"subEquations" : [ "s = 1" ],
"freeVariables" : [ "s" ]
}
},
"Maple" : {
"translation" : "s = 1",
"translationInformation" : {
"subEquations" : [ "s = 1" ],
"freeVariables" : [ "s" ]
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 3,
"word" : 1
} ],
"includes" : [ "s", "1" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "simple pole with residue",
"score" : 0.6859086196238077
} ]
}