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 D_+(x) = {\sqrt{\pi} \over 2} e^{-x^2} \operatorname{erfi} (x) = - {i \sqrt{\pi} \over 2 }e^{-x^2} \operatorname{erf} (ix) }
... is translated to the CAS output ...
Semantic latex: D_+(x) ={\sqrt{\cpi} \over 2} \expe^{-x^2} \operatorname{erfi}(x) = -{\iunit \sqrt{\cpi} \over 2} \expe^{-x^2} \erf@@{(\iunit x)}
Confidence: 0.78252731578142
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \over [\over]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \over [\over]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \over [\over]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- erfi
- imaginary error function
- erf
- error function erf
- ix
Complete translation information:
{
"id" : "FORMULA_a9afa18f33696369cc77b49e34e9357d",
"formula" : "D_+(x) = {\\sqrt{\\pi} \\over 2} e^{-x^2} \\operatorname{erfi} (x) = - {i \\sqrt{\\pi} \\over 2 }e^{-x^2} \\operatorname{erf} (ix)",
"semanticFormula" : "D_+(x) ={\\sqrt{\\cpi} \\over 2} \\expe^{-x^2} \\operatorname{erfi}(x) = -{\\iunit \\sqrt{\\cpi} \\over 2} \\expe^{-x^2} \\erf@@{(\\iunit x)}",
"confidence" : 0.7825273157814244,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
}
},
"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) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
}
},
"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) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
}
},
"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" : [ {
"section" : 1,
"sentence" : 2,
"word" : 11
} ],
"includes" : [ "x) = -i", "x" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "erfi",
"score" : 0.8426021531523621
}, {
"definition" : "imaginary error function",
"score" : 0.6954080343007951
}, {
"definition" : "erf",
"score" : 0.6687181434333315
}, {
"definition" : "error function erf",
"score" : 0.6687181434333315
}, {
"definition" : "ix",
"score" : 0.6288842031023242
} ]
}