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 P_4}
... is translated to the CAS output ...
Semantic latex: P_4
Confidence: 0
Mathematica
Translation: Subscript[P, 4]
Information
Sub Equations
- Subscript[P, 4]
Free variables
- Subscript[P, 4]
Tests
Symbolic
Numeric
SymPy
Translation: Symbol('{P}_{4}')
Information
Sub Equations
- Symbol('{P}_{4}')
Free variables
- Symbol('{P}_{4}')
Tests
Symbolic
Numeric
Maple
Translation: P[4]
Information
Sub Equations
- P[4]
Free variables
- P[4]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- point
- angle
- circle
- diagram
- inscribed angle theorem for circle
- parameter
- simple way
- statement
- line
- sense of the measurement
- ellipse with equation
Complete translation information:
{
"id" : "FORMULA_d94aa42e38e4ef613c5cb9a398883c3e",
"formula" : "P_4",
"semanticFormula" : "P_4",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "Subscript[P, 4]",
"translationInformation" : {
"subEquations" : [ "Subscript[P, 4]" ],
"freeVariables" : [ "Subscript[P, 4]" ]
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"SymPy" : {
"translation" : "Symbol('{P}_{4}')",
"translationInformation" : {
"subEquations" : [ "Symbol('{P}_{4}')" ],
"freeVariables" : [ "Symbol('{P}_{4}')" ]
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"Maple" : {
"translation" : "P[4]",
"translationInformation" : {
"subEquations" : [ "P[4]" ],
"freeVariables" : [ "P[4]" ]
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
}
},
"positions" : [ {
"section" : 28,
"sentence" : 1,
"word" : 49
}, {
"section" : 29,
"sentence" : 0,
"word" : 39
}, {
"section" : 32,
"sentence" : 1,
"word" : 19
} ],
"includes" : [ "P" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "point",
"score" : 0.8927026291809016
}, {
"definition" : "angle",
"score" : 0.8169004264695737
}, {
"definition" : "circle",
"score" : 0.758094309158325
}, {
"definition" : "diagram",
"score" : 0.727880366866622
}, {
"definition" : "inscribed angle theorem for circle",
"score" : 0.6584038577190456
}, {
"definition" : "parameter",
"score" : 0.6584038577190456
}, {
"definition" : "simple way",
"score" : 0.6584038577190456
}, {
"definition" : "statement",
"score" : 0.6584038577190456
}, {
"definition" : "line",
"score" : 0.23708263835816779
}, {
"definition" : "sense of the measurement",
"score" : 0.22750321382414995
}, {
"definition" : "ellipse with equation",
"score" : 0.17878095238595548
} ]
}