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 0 < p < \pi }
... is translated to the CAS output ...
Semantic latex: 0 < p < \cpi
Confidence: 0
Mathematica
Translation: 0 < p < Pi
Information
Sub Equations
- 0 < p
- p < Pi
Free variables
- p
Symbol info
- Pi was translated to: Pi
Tests
Symbolic
Test expression: 0<p
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Test expression: p<Pi
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: 0 < p < pi
Information
Sub Equations
- 0 < p
- p < pi
Free variables
- p
Symbol info
- Pi was translated to: pi
Tests
Symbolic
Numeric
Maple
Translation: 0 < p < Pi
Information
Sub Equations
- 0 < p
- p < Pi
Free variables
- p
Symbol info
- Pi was translated to: Pi
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- number
- equation
Complete translation information:
{
"id" : "FORMULA_9db25d14bda56e6ca42c29958ddae05b",
"formula" : "0 < p < \\pi",
"semanticFormula" : "0 < p < \\cpi",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "0 < p < Pi",
"translationInformation" : {
"subEquations" : [ "0 < p", "p < Pi" ],
"freeVariables" : [ "p" ],
"tokenTranslations" : {
"\\cpi" : "Pi was translated to: Pi"
}
},
"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" : "0",
"rhs" : "p",
"testExpression" : "0<p",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
}, {
"lhs" : "p",
"rhs" : "Pi",
"testExpression" : "p<Pi",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "0 < p < pi",
"translationInformation" : {
"subEquations" : [ "0 < p", "p < pi" ],
"freeVariables" : [ "p" ],
"tokenTranslations" : {
"\\cpi" : "Pi was translated to: pi"
}
}
},
"Maple" : {
"translation" : "0 < p < Pi",
"translationInformation" : {
"subEquations" : [ "0 < p", "p < Pi" ],
"freeVariables" : [ "p" ],
"tokenTranslations" : {
"\\cpi" : "Pi was translated to: Pi"
}
}
}
},
"positions" : [ {
"section" : 0,
"sentence" : 1,
"word" : 17
} ],
"includes" : [ "p", "\\pi" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "number",
"score" : 0.7125985104912714
}, {
"definition" : "equation",
"score" : 0.6460746792928004
} ]
}