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 \pm 1}
... is translated to the CAS output ...
Semantic latex: \pm 1
Confidence: 0
Mathematica
Translation: \[PlusMinus]1
Information
Sub Equations
- + 1
- - 1
Symbol info
- was translated to: \[PlusMinus]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) An unknown or missing element occurred: Cannot translate operation \pm
Tests
Symbolic
Numeric
Maple
Translation: &+- 1
Information
Sub Equations
- + 1
- - 1
Symbol info
- was translated to: &+-
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_967ffa3ca82c4b8aad1075067fb3fec5",
"formula" : "\\pm 1",
"semanticFormula" : "\\pm 1",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[PlusMinus]1",
"translationInformation" : {
"subEquations" : [ "+ 1", "- 1" ],
"tokenTranslations" : {
"\\pm" : "was translated to: \\[PlusMinus]"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) An unknown or missing element occurred: Cannot translate operation \\pm"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"Maple" : {
"translation" : "&+- 1",
"translationInformation" : {
"subEquations" : [ "+ 1", "- 1" ],
"tokenTranslations" : {
"\\pm" : "was translated to: &+-"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
}
},
"positions" : [ ],
"includes" : [ "1" ],
"isPartOf" : [ "w_i = \\frac{2}{n(n - 1)\\left[P_{n-1}\\left(x_i\\right)\\right]^2}, \\qquad x_i \\ne \\pm 1" ],
"definiens" : [ ]
}