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 \mu = 0 }
... is translated to the CAS output ...
Semantic latex: \mu = 0
Confidence: 0
Mathematica
Translation: \[Mu] == 0
Information
Sub Equations
- \[Mu] = 0
Free variables
- \[Mu]
Tests
Symbolic
Test expression: (\[Mu])-(0)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: Symbol('mu') == 0
Information
Sub Equations
- Symbol('mu') = 0
Free variables
- Symbol('mu')
Tests
Symbolic
Numeric
Maple
Translation: mu = 0
Information
Sub Equations
- mu = 0
Free variables
- mu
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- integer degree
- nonpolynomial solution for the special case
- integer
- n
- Legendre polynomial
- superscript
- m
- polynomial solution
Complete translation information:
{
"id" : "FORMULA_64105bcc4e5b87e14d6ed0e44569013e",
"formula" : "\\mu = 0",
"semanticFormula" : "\\mu = 0",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[Mu] == 0",
"translationInformation" : {
"subEquations" : [ "\\[Mu] = 0" ],
"freeVariables" : [ "\\[Mu]" ]
},
"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" : "\\[Mu]",
"rhs" : "0",
"testExpression" : "(\\[Mu])-(0)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "Symbol('mu') == 0",
"translationInformation" : {
"subEquations" : [ "Symbol('mu') = 0" ],
"freeVariables" : [ "Symbol('mu')" ]
}
},
"Maple" : {
"translation" : "mu = 0",
"translationInformation" : {
"subEquations" : [ "mu = 0" ],
"freeVariables" : [ "mu" ]
}
}
},
"positions" : [ {
"section" : 3,
"sentence" : 0,
"word" : 13
} ],
"includes" : [ "\\mu", "\\mu=0" ],
"isPartOf" : [ "\\mu=0" ],
"definiens" : [ {
"definition" : "integer degree",
"score" : 0.6896778755706364
}, {
"definition" : "nonpolynomial solution for the special case",
"score" : 0.6231540443721655
}, {
"definition" : "integer",
"score" : 0.4520305698126663
}, {
"definition" : "n",
"score" : 0.4520305698126663
}, {
"definition" : "Legendre polynomial",
"score" : 0.4062099903411196
}, {
"definition" : "superscript",
"score" : 0.3198499638698394
}, {
"definition" : "m",
"score" : 0.31920930249007934
}, {
"definition" : "polynomial solution",
"score" : 0.31920930249007934
} ]
}