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 \frac{dF}{dx} + 2xF=1\,\!}
... is translated to the CAS output ...
Semantic latex: \frac{dF}{dx} + 2xF=1
Confidence: 0
Mathematica
Translation: Divide[d*F,d*x]+ 2*x*F == 1
Information
Sub Equations
- Divide[d*F,d*x]+ 2*x*F = 1
Free variables
- F
- d
- x
Tests
Symbolic
Test expression: (Divide[d*F,d*x]+ 2*x*F)-(1)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: (d*F)/(d*x)+ 2*x*F == 1
Information
Sub Equations
- (d*F)/(d*x)+ 2*x*F = 1
Free variables
- F
- d
- x
Tests
Symbolic
Numeric
Maple
Translation: (d*F)/(d*x)+ 2*x*F = 1
Information
Sub Equations
- (d*F)/(d*x)+ 2*x*F = 1
Free variables
- F
- d
- x
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_048ba7930e046736ec11de33efe81664",
"formula" : "\\frac{dF}{dx} + 2xF=1",
"semanticFormula" : "\\frac{dF}{dx} + 2xF=1",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "Divide[d*F,d*x]+ 2*x*F == 1",
"translationInformation" : {
"subEquations" : [ "Divide[d*F,d*x]+ 2*x*F = 1" ],
"freeVariables" : [ "F", "d", "x" ]
},
"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" : "Divide[d*F,d*x]+ 2*x*F",
"rhs" : "1",
"testExpression" : "(Divide[d*F,d*x]+ 2*x*F)-(1)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "(d*F)/(d*x)+ 2*x*F == 1",
"translationInformation" : {
"subEquations" : [ "(d*F)/(d*x)+ 2*x*F = 1" ],
"freeVariables" : [ "F", "d", "x" ]
}
},
"Maple" : {
"translation" : "(d*F)/(d*x)+ 2*x*F = 1",
"translationInformation" : {
"subEquations" : [ "(d*F)/(d*x)+ 2*x*F = 1" ],
"freeVariables" : [ "F", "d", "x" ]
}
}
},
"positions" : [ ],
"includes" : [ "\\frac{dF}{dx} + 2xF=1\\," ],
"isPartOf" : [ "\\frac{dF}{dx} + 2xF=1\\," ],
"definiens" : [ ]
}