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 \operatorname{Ci}(x) \sim \frac{\sin x}{x}\left(1-\frac{2!}{x^2}+\frac{4!}{x^4}-\frac{6!}{x^6}\cdots\right) -\frac{\cos x}{x}\left(\frac{1}{x}-\frac{3!}{x^{3}}+\frac{5!}{x^5}-\frac{7!}{x^7}\cdots\right) ~.}
... is translated to the CAS output ...
Semantic latex: \operatorname{Ci}(x) \sim \frac{\sin x}{x}(1 - \frac{2!}{x^2} + \frac{4!}{x^4} - \frac{6!}{x^6} \cdots) - \frac{\cos x}{x}(\frac{1}{x} - \frac{3!}{x^{3}} + \frac{5!}{x^5} - \frac{7!}{x^7} \cdots)
Confidence: 0
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \sim [\sim]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \sim [\sim]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \sim [\sim]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Complete translation information:
{
"id" : "FORMULA_a973e5974fd72da0fc622a5706b9f8ee",
"formula" : "\\operatorname{Ci}(x) \\sim \\frac{\\sin x}{x}\\left(1-\\frac{2!}{x^2}+\\frac{4!}{x^4}-\\frac{6!}{x^6}\\cdots\\right)\n -\\frac{\\cos x}{x}\\left(\\frac{1}{x}-\\frac{3!}{x^{3}}+\\frac{5!}{x^5}-\\frac{7!}{x^7}\\cdots\\right) ~",
"semanticFormula" : "\\operatorname{Ci}(x) \\sim \\frac{\\sin x}{x}(1 - \\frac{2!}{x^2} + \\frac{4!}{x^4} - \\frac{6!}{x^6} \\cdots) - \\frac{\\cos x}{x}(\\frac{1}{x} - \\frac{3!}{x^{3}} + \\frac{5!}{x^5} - \\frac{7!}{x^7} \\cdots)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\sim [\\sim]"
}
},
"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) No translation possible for given token: Cannot extract information from feature set: \\sim [\\sim]"
}
},
"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" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\sim [\\sim]"
}
},
"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" : [ "\\operatorname{Ci}(x) \\sim \\frac{\\sin x}{x}\\left(1-\\frac{2!}{x^2}+\\frac{4!}{x^4}-\\frac{6!}{x^6}\\cdots\\right) -\\frac{\\cos x}{x}\\left(\\frac{1}{x}-\\frac{3!}{x^{3}}+\\frac{5!}{x^5}-\\frac{7!}{x^7}\\cdots\\right)", "Ci", "x", "Ci(x)" ],
"isPartOf" : [ "\\operatorname{Ci}(x) \\sim \\frac{\\sin x}{x}\\left(1-\\frac{2!}{x^2}+\\frac{4!}{x^4}-\\frac{6!}{x^6}\\cdots\\right) -\\frac{\\cos x}{x}\\left(\\frac{1}{x}-\\frac{3!}{x^{3}}+\\frac{5!}{x^5}-\\frac{7!}{x^7}\\cdots\\right)" ],
"definiens" : [ ]
}