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 M(1,2,z)=(e^z-1)/z,\ \ M(1,3,z)=2!(e^z-1-z)/z^2}
... is translated to the CAS output ...
Semantic latex: M(1 , 2 , z) =(\expe^z - 1) / z , M(1 , 3 , z) = 2!(\expe^z - 1 - z) / z^2
Confidence: 0
Mathematica
Translation: M[1 , 2 , z] == (Exp[z]- 1)/z M[1 , 3 , z] == (2)!*(Exp[z]- 1 - z)/(z)^(2)
Information
Free variables
- z
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Test expression: M*(1 , 2 , z)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Test expression: (Exp[z]- 1)/z M*(1 , 3 , z)
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: M(1 , 2 , z) == (exp(z)- 1)/z M(1 , 3 , z) == factorial(2)*(exp(z)- 1 - z)/(z)**(2)
Information
Free variables
- z
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: M(1 , 2 , z) = (exp(z)- 1)/z; M(1 , 3 , z) = factorial(2)*(exp(z)- 1 - z)/(z)^(2)
Information
Free variables
- z
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_e06b82478f9356f51e3dc659d739e8ea",
"formula" : "M(1,2,z)=(e^z-1)/z,M(1,3,z)=2!(e^z-1-z)/z^2",
"semanticFormula" : "M(1 , 2 , z) =(\\expe^z - 1) / z , M(1 , 3 , z) = 2!(\\expe^z - 1 - z) / z^2",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "M[1 , 2 , z] == (Exp[z]- 1)/z\n M[1 , 3 , z] == (2)!*(Exp[z]- 1 - z)/(z)^(2)",
"translationInformation" : {
"freeVariables" : [ "z" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"M" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "ERROR",
"numberOfTests" : 2,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 2,
"crashed" : false,
"testCalculationsGroup" : [ {
"lhs" : "M*(1 , 2 , z)",
"rhs" : "",
"testExpression" : "M*(1 , 2 , z)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
}, {
"lhs" : "(Exp[z]- 1)/z\n M*(1 , 3 , z)",
"rhs" : "",
"testExpression" : "(Exp[z]- 1)/z\n M*(1 , 3 , z)",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "M(1 , 2 , z) == (exp(z)- 1)/z\n M(1 , 3 , z) == factorial(2)*(exp(z)- 1 - z)/(z)**(2)",
"translationInformation" : {
"freeVariables" : [ "z" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"M" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
}
},
"Maple" : {
"translation" : "M(1 , 2 , z) = (exp(z)- 1)/z; M(1 , 3 , z) = factorial(2)*(exp(z)- 1 - z)/(z)^(2)",
"translationInformation" : {
"freeVariables" : [ "z" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"M" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
}
}
},
"positions" : [ ],
"includes" : [ "(1, 2", "(1, 3", "^2", "(1,2", "M(1,2,z)=(e^z-1)/z,\\ \\ M(1,3,z)=2!(e^z-1-z)/z^2" ],
"isPartOf" : [ "M(1,2,z)=(e^z-1)/z,\\ \\ M(1,3,z)=2!(e^z-1-z)/z^2" ],
"definiens" : [ ]
}