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 i^{- i} = e^{+ \pi/2}}
... is translated to the CAS output ...
Semantic latex: \iunit^{- \iunit} = \expe^{+ \cpi / 2}
Confidence: 0
Mathematica
Translation: (I)^(- I) == Exp[+ Pi/2]
Information
Sub Equations
- (I)^(- I) = Exp[+ Pi/2]
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Imaginary unit was translated to: I
- Pi was translated to: Pi
Tests
Symbolic
Test expression: ((I)^(- I))-(Exp[+ Pi/2])
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: (I)**(- I) == exp(+ pi/2)
Information
Sub Equations
- (I)**(- I) = exp(+ pi/2)
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Imaginary unit was translated to: I
- Pi was translated to: pi
Tests
Symbolic
Numeric
Maple
Translation: (I)^(- I) = exp(+ Pi/2)
Information
Sub Equations
- (I)^(- I) = exp(+ Pi/2)
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Imaginary unit was translated to: I
- Pi was translated to: Pi
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- e.g.
- addition
- expression
Complete translation information:
{
"id" : "FORMULA_3dbbea2d45aa355d83624f53b6338c34",
"formula" : "i^{- i} = e^{+ \\pi/2}",
"semanticFormula" : "\\iunit^{- \\iunit} = \\expe^{+ \\cpi / 2}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "(I)^(- I) == Exp[+ Pi/2]",
"translationInformation" : {
"subEquations" : [ "(I)^(- I) = Exp[+ Pi/2]" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\iunit" : "Imaginary unit was translated to: I",
"\\cpi" : "Pi was translated to: Pi"
}
},
"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" : "(I)^(- I)",
"rhs" : "Exp[+ Pi/2]",
"testExpression" : "((I)^(- I))-(Exp[+ Pi/2])",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "(I)**(- I) == exp(+ pi/2)",
"translationInformation" : {
"subEquations" : [ "(I)**(- I) = exp(+ pi/2)" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\iunit" : "Imaginary unit was translated to: I",
"\\cpi" : "Pi was translated to: pi"
}
}
},
"Maple" : {
"translation" : "(I)^(- I) = exp(+ Pi/2)",
"translationInformation" : {
"subEquations" : [ "(I)^(- I) = exp(+ Pi/2)" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\iunit" : "Imaginary unit was translated to: I",
"\\cpi" : "Pi was translated to: Pi"
}
}
}
},
"positions" : [ {
"section" : 7,
"sentence" : 9,
"word" : 20
} ],
"includes" : [ "=", "2" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "e.g.",
"score" : 0.6460746792928004
}, {
"definition" : "addition",
"score" : 0.5988174995334326
}, {
"definition" : "expression",
"score" : 0.5988174995334326
} ]
}