LaTeX to CAS translator
Jump to navigation
Jump to search
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 s \neq 1}
... is translated to the CAS output ...
Semantic latex: s \neq 1
Confidence: 0
Mathematica
Translation: s \[NotEqual]1
Information
Sub Equations
- s <> 1
Free variables
- s
Tests
Symbolic
Test expression: s\neq1
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Unknown relation. Cannot translate: \neq [\neq]
Tests
Symbolic
Numeric
Maple
Translation: s <> 1
Information
Sub Equations
- s <> 1
Free variables
- s
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- complex number
- analytic continuation to a meromorphic function
- Hurwitz zeta function
Complete translation information:
{
"id" : "FORMULA_25c0d593e7a5d4e6f34f27f1d1462542",
"formula" : "s \\neq 1",
"semanticFormula" : "s \\neq 1",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "s \\[NotEqual]1",
"translationInformation" : {
"subEquations" : [ "s <> 1" ],
"freeVariables" : [ "s" ]
},
"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" : "s",
"rhs" : "1",
"testExpression" : "s\\neq1",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Unknown relation. Cannot translate: \\neq [\\neq]"
}
}
},
"Maple" : {
"translation" : "s <> 1",
"translationInformation" : {
"subEquations" : [ "s <> 1" ],
"freeVariables" : [ "s" ]
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 2,
"word" : 21
} ],
"includes" : [ "s", "1" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "complex number",
"score" : 0.7125985104912714
}, {
"definition" : "analytic continuation to a meromorphic function",
"score" : 0.5500952380952381
}, {
"definition" : "Hurwitz zeta function",
"score" : 0.5500952380952381
} ]
}