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 1/u=1/(y-x)}
... is translated to the CAS output ...
Semantic latex: 1/u=1/(y-x)
Confidence: 0
Mathematica
Translation: 1/u == 1/(y - x)
Information
Sub Equations
- 1/u = 1/(y - x)
Free variables
- u
- x
- y
Tests
Symbolic
Test expression: (1/u)-(1/(y - x))
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: 1/u == 1/(y - x)
Information
Sub Equations
- 1/u = 1/(y - x)
Free variables
- u
- x
- y
Tests
Symbolic
Numeric
Maple
Translation: 1/u = 1/(y - x)
Information
Sub Equations
- 1/u = 1/(y - x)
Free variables
- u
- x
- y
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- distribution
- exponential representation
- Fourier representation
- function
- principal value
- real axis
- respect
Complete translation information:
{
"id" : "FORMULA_36541519c778cc5179c5ecde7d45609a",
"formula" : "1/u=1/(y-x)",
"semanticFormula" : "1/u=1/(y-x)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "1/u == 1/(y - x)",
"translationInformation" : {
"subEquations" : [ "1/u = 1/(y - x)" ],
"freeVariables" : [ "u", "x", "y" ]
},
"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" : "1/u",
"rhs" : "1/(y - x)",
"testExpression" : "(1/u)-(1/(y - x))",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "1/u == 1/(y - x)",
"translationInformation" : {
"subEquations" : [ "1/u = 1/(y - x)" ],
"freeVariables" : [ "u", "x", "y" ]
}
},
"Maple" : {
"translation" : "1/u = 1/(y - x)",
"translationInformation" : {
"subEquations" : [ "1/u = 1/(y - x)" ],
"freeVariables" : [ "u", "x", "y" ]
}
}
},
"positions" : [ {
"section" : 2,
"sentence" : 2,
"word" : 24
} ],
"includes" : [ "1/u", "y", "x" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "distribution",
"score" : 0.6859086196238077
}, {
"definition" : "exponential representation",
"score" : 0.6859086196238077
}, {
"definition" : "Fourier representation",
"score" : 0.6859086196238077
}, {
"definition" : "function",
"score" : 0.6859086196238077
}, {
"definition" : "principal value",
"score" : 0.6859086196238077
}, {
"definition" : "real axis",
"score" : 0.6859086196238077
}, {
"definition" : "respect",
"score" : 0.6859086196238077
} ]
}