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_a=2\pi^{-1/2}F(y\sqrt a)}
... is translated to the CAS output ...
Semantic latex: \HeavisideH@{x}_a = 2 \cpi^{-1/2} F(y \sqrt a)
Confidence: 0.45649673482167
Mathematica
Translation: Subscript[HeavisideTheta[x], a] == 2*(Pi)^(- 1/2)* F[y*Sqrt[a]]
Information
Sub Equations
- Subscript[HeavisideTheta[x], a] = 2*(Pi)^(- 1/2)* F[y*Sqrt[a]]
Free variables
- a
- x
- 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
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- Pi was translated to: Pi
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(x)[a] = 2*(Pi)^(- 1/2)* F(y*sqrt(a))
Information
Sub Equations
- Heaviside(x)[a] = 2*(Pi)^(- 1/2)* F(y*sqrt(a))
Free variables
- a
- x
- 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
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- Pi was translated to: Pi
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- change of variable
Complete translation information:
{
"id" : "FORMULA_783dc528a8086ed1d824f1ab7c8a00dc",
"formula" : "H_a=2\\pi^{-1/2}F(y\\sqrt a)",
"semanticFormula" : "\\HeavisideH@{x}_a = 2 \\cpi^{-1/2} F(y \\sqrt a)",
"confidence" : 0.4564967348216724,
"translations" : {
"Mathematica" : {
"translation" : "Subscript[HeavisideTheta[x], a] == 2*(Pi)^(- 1/2)* F[y*Sqrt[a]]",
"translationInformation" : {
"subEquations" : [ "Subscript[HeavisideTheta[x], a] = 2*(Pi)^(- 1/2)* F[y*Sqrt[a]]" ],
"freeVariables" : [ "a", "x", "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",
"F" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\cpi" : "Pi was translated to: Pi"
}
},
"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(x)[a] = 2*(Pi)^(- 1/2)* F(y*sqrt(a))",
"translationInformation" : {
"subEquations" : [ "Heaviside(x)[a] = 2*(Pi)^(- 1/2)* F(y*sqrt(a))" ],
"freeVariables" : [ "a", "x", "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",
"F" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\cpi" : "Pi was translated to: Pi"
}
},
"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" : 8,
"word" : 6
} ],
"includes" : [ "F(x)", "y", "F(y)", "H_n" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "change of variable",
"score" : 0.6859086196238077
} ]
}