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 H(y)}
... is translated to the CAS output ...
Semantic latex: \HeavisideH@{y}
Confidence: 0.70119990311329
Mathematica
Translation: HeavisideTheta[y]
Information
Sub Equations
- HeavisideTheta[y]
Free variables
- y
Symbol info
- Heaviside step function; Example: \HeavisideH@{x}
Will be translated to: HeavisideTheta[$0] Relevant links to definitions: DLMF: http://dlmf.nist.gov/1.16#E13 Mathematica: https://reference.wolfram.com/language/ref/HeavisideTheta.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \HeavisideH [\HeavisideH]
Tests
Symbolic
Numeric
Maple
Translation: Heaviside(y)
Information
Sub Equations
- Heaviside(y)
Free variables
- y
Symbol info
- Heaviside step function; Example: \HeavisideH@{x}
Will be translated to: Heaviside($0) Relevant links to definitions: DLMF: http://dlmf.nist.gov/1.16#E13 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=Heaviside
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- Dawson function
- respect
- p.v.
- distribution
- exponential representation
- Fourier representation
- function
- Hilbert
- principal value
- real axis
- integral
- Gaussian
- contour
- variable
- Cauchy principal value
- rectangle in the complex plane
- imaginary part of the result
Complete translation information:
{
"id" : "FORMULA_50c1431344aafe679e113fc1cf92add7",
"formula" : "H(y)",
"semanticFormula" : "\\HeavisideH@{y}",
"confidence" : 0.7011999031132912,
"translations" : {
"Mathematica" : {
"translation" : "HeavisideTheta[y]",
"translationInformation" : {
"subEquations" : [ "HeavisideTheta[y]" ],
"freeVariables" : [ "y" ],
"tokenTranslations" : {
"\\HeavisideH" : "Heaviside step function; Example: \\HeavisideH@{x}\nWill be translated to: HeavisideTheta[$0]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/1.16#E13\nMathematica: https://reference.wolfram.com/language/ref/HeavisideTheta.html"
}
},
"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: \\HeavisideH [\\HeavisideH]"
}
},
"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" : "Heaviside(y)",
"translationInformation" : {
"subEquations" : [ "Heaviside(y)" ],
"freeVariables" : [ "y" ],
"tokenTranslations" : {
"\\HeavisideH" : "Heaviside step function; Example: \\HeavisideH@{x}\nWill be translated to: Heaviside($0)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/1.16#E13\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=Heaviside"
}
},
"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" : 2,
"sentence" : 1,
"word" : 0
} ],
"includes" : [ "y" ],
"isPartOf" : [ "H(y) = \\pi^{-1} \\operatorname{P.V.} \\int_{-\\infty}^\\infty \\frac{e^{-x^2}}{y-x} \\, dx", "\\pi H(y) = \\operatorname{Im} \\int_0^\\infty dk \\,\\exp[-k^2/4+iky] \\int_{-\\infty}^\\infty dx \\, \\exp[-(x+ik/2)^2]", "\\pi^{1/2} H(y) = \\operatorname{Im} \\int_0^\\infty dk \\, \\exp[-k^2/4+iky]", "\\pi^{1/2}H(y) = e^{-y^2} \\operatorname{Im} \\int_0^\\infty dk \\, \\exp[-(k/2-iy)^2]", "\\pi^{1/2}H(y) = -2e^{-y^2} \\operatorname{Im} i \\int_y^{i\\infty+y} du\\ e^{u^2}", "H(y) = 2\\pi^{-1/2} F(y)" ],
"definiens" : [ {
"definition" : "Dawson function",
"score" : 0.8094283008158696
}, {
"definition" : "respect",
"score" : 0.7962930800598151
}, {
"definition" : "p.v.",
"score" : 0.6793245439387732
}, {
"definition" : "distribution",
"score" : 0.6432331635625809
}, {
"definition" : "exponential representation",
"score" : 0.6432331635625809
}, {
"definition" : "Fourier representation",
"score" : 0.6432331635625809
}, {
"definition" : "function",
"score" : 0.6432331635625809
}, {
"definition" : "Hilbert",
"score" : 0.6432331635625809
}, {
"definition" : "principal value",
"score" : 0.6432331635625809
}, {
"definition" : "real axis",
"score" : 0.6432331635625809
}, {
"definition" : "integral",
"score" : 0.6042528684491243
}, {
"definition" : "Gaussian",
"score" : 0.6033992232315736
}, {
"definition" : "contour",
"score" : 0.5775629775816605
}, {
"definition" : "variable",
"score" : 0.5775629775816605
}, {
"definition" : "Cauchy principal value",
"score" : 0.5561420434722057
}, {
"definition" : "rectangle in the complex plane",
"score" : 0.5377290372506534
}, {
"definition" : "imaginary part of the result",
"score" : 0.4569794411975623
} ]
}