LaTeX to CAS translator
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 \left(x^2+y^2\right)^2=x^2-y^2}
... is translated to the CAS output ...
Semantic latex: (x^2 + y^2)^2 = x^2 - y^2
Confidence: 0
Mathematica
Translation: ((x)^(2)+ (y)^(2))^(2) == (x)^(2)- (y)^(2)
Information
Sub Equations
- ((x)^(2)+ (y)^(2))^(2) = (x)^(2)- (y)^(2)
Free variables
- x
- y
Tests
Symbolic
Test expression: (((x)^(2)+ (y)^(2))^(2))-((x)^(2)- (y)^(2))
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: ((x)**(2)+ (y)**(2))**(2) == (x)**(2)- (y)**(2)
Information
Sub Equations
- ((x)**(2)+ (y)**(2))**(2) = (x)**(2)- (y)**(2)
Free variables
- x
- y
Tests
Symbolic
Numeric
Maple
Translation: ((x)^(2)+ (y)^(2))^(2) = (x)^(2)- (y)^(2)
Information
Sub Equations
- ((x)^(2)+ (y)^(2))^(2) = (x)^(2)- (y)^(2)
Free variables
- x
- y
Tests
Symbolic
Numeric
Dependency Graph Information
Description
- point
- lemniscate of Bernoulli
- product
- distance
Complete translation information:
{
"id" : "FORMULA_01015aba913dd45a44a0f6d94ab0b198",
"formula" : "\\left(x^2+y^2\\right)^2=x^2-y^2",
"semanticFormula" : "(x^2 + y^2)^2 = x^2 - y^2",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "((x)^(2)+ (y)^(2))^(2) == (x)^(2)- (y)^(2)",
"translationInformation" : {
"subEquations" : [ "((x)^(2)+ (y)^(2))^(2) = (x)^(2)- (y)^(2)" ],
"freeVariables" : [ "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" : "((x)^(2)+ (y)^(2))^(2)",
"rhs" : "(x)^(2)- (y)^(2)",
"testExpression" : "(((x)^(2)+ (y)^(2))^(2))-((x)^(2)- (y)^(2))",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "((x)**(2)+ (y)**(2))**(2) == (x)**(2)- (y)**(2)",
"translationInformation" : {
"subEquations" : [ "((x)**(2)+ (y)**(2))**(2) = (x)**(2)- (y)**(2)" ],
"freeVariables" : [ "x", "y" ]
}
},
"Maple" : {
"translation" : "((x)^(2)+ (y)^(2))^(2) = (x)^(2)- (y)^(2)",
"translationInformation" : {
"subEquations" : [ "((x)^(2)+ (y)^(2))^(2) = (x)^(2)- (y)^(2)" ],
"freeVariables" : [ "x", "y" ]
}
}
},
"positions" : [ {
"section" : 2,
"sentence" : 0,
"word" : 4
} ],
"includes" : [ ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "point",
"score" : 0.7614190945044865
}, {
"definition" : "lemniscate of Bernoulli",
"score" : 0.722
}, {
"definition" : "product",
"score" : 0.5816270233429564
}, {
"definition" : "distance",
"score" : 0.5329047619047619
} ]
}