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 y^2=x(x-1)(x-\lambda)}
... is translated to the CAS output ...
Semantic latex: y^2=x(x-1)(x-\lambda)
Confidence: 0
Mathematica
Translation: (y)^(2) == x*(x - 1)*(x - \[Lambda])
Information
Sub Equations
- (y)^(2) = x*(x - 1)*(x - \[Lambda])
Free variables
- \[Lambda]
- x
- y
Tests
Symbolic
Test expression: ((y)^(2))-(x*(x - 1)*(x - \[Lambda]))
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: (y)**(2) == x*(x - 1)*(x - Symbol('lambda'))
Information
Sub Equations
- (y)**(2) = x*(x - 1)*(x - Symbol('lambda'))
Free variables
- Symbol('lambda')
- x
- y
Tests
Symbolic
Numeric
Maple
Translation: (y)^(2) = x*(x - 1)*(x - lambda)
Information
Sub Equations
- (y)^(2) = x*(x - 1)*(x - lambda)
Free variables
- lambda
- x
- y
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- elliptic curve of Legendre form
Complete translation information:
{
"id" : "FORMULA_4e5334aa6f5fa551b0718a2372816061",
"formula" : "y^2=x(x-1)(x-\\lambda)",
"semanticFormula" : "y^2=x(x-1)(x-\\lambda)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "(y)^(2) == x*(x - 1)*(x - \\[Lambda])",
"translationInformation" : {
"subEquations" : [ "(y)^(2) = x*(x - 1)*(x - \\[Lambda])" ],
"freeVariables" : [ "\\[Lambda]", "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" : "(y)^(2)",
"rhs" : "x*(x - 1)*(x - \\[Lambda])",
"testExpression" : "((y)^(2))-(x*(x - 1)*(x - \\[Lambda]))",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "(y)**(2) == x*(x - 1)*(x - Symbol('lambda'))",
"translationInformation" : {
"subEquations" : [ "(y)**(2) = x*(x - 1)*(x - Symbol('lambda'))" ],
"freeVariables" : [ "Symbol('lambda')", "x", "y" ]
}
},
"Maple" : {
"translation" : "(y)^(2) = x*(x - 1)*(x - lambda)",
"translationInformation" : {
"subEquations" : [ "(y)^(2) = x*(x - 1)*(x - lambda)" ],
"freeVariables" : [ "lambda", "x", "y" ]
}
}
},
"positions" : [ {
"section" : 2,
"sentence" : 5,
"word" : 13
} ],
"includes" : [ "\\lambda" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "elliptic curve of Legendre form",
"score" : 0.722
} ]
}