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 U(a,x)=D_{-a-\tfrac12}(x),}
... is translated to the CAS output ...
Semantic latex: \paraU@{a}{x} = \WhittakerparaD{-a-\tfrac12}@{x}
Confidence: 0.86331298726606
Mathematica
Translation: ParabolicCylinderD[- 1/2 -(a), x] == ParabolicCylinderD[- a -Divide[1,2], x]
Information
Sub Equations
- ParabolicCylinderD[- 1/2 -(a), x] = ParabolicCylinderD[- a -Divide[1,2], x]
Free variables
- a
- x
Symbol info
- Parabolic cylinder function U; Example: \paraU@{a}{z}
Will be translated to: ParabolicCylinderD[- 1/2 -($0), $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/12.4#E1 Mathematica: https://reference.wolfram.com/language/ref/ParabolicCylinderD.html
- Whittaker's notation D for the parabolic cylinder function; Example: \WhittakerparaD{\nu}@{z}
Will be translated to: ParabolicCylinderD[$0, $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/12.1 Mathematica: https://reference.wolfram.com/language/ref/ParabolicCylinderD.html
Tests
Symbolic
Test expression: (ParabolicCylinderD[- 1/2 -(a), x])-(ParabolicCylinderD[- a -Divide[1,2], x])
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \paraU [\paraU]
Tests
Symbolic
Numeric
Maple
Translation: CylinderU(a, x) = CylinderD(- a -(1)/(2), x)
Information
Sub Equations
- CylinderU(a, x) = CylinderD(- a -(1)/(2), x)
Free variables
- a
- x
Symbol info
- Parabolic cylinder function U; Example: \paraU@{a}{z}
Will be translated to: CylinderU($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/12.4#E1 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=CylinderU
- Whittaker's notation D for the parabolic cylinder function; Example: \WhittakerparaD{\nu}@{z}
Will be translated to: CylinderD($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/12.1 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=CylinderD
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- parabolic cylinder
- function
- Abramowitz
- notation
- Whittaker
- Stegun
Complete translation information:
{
"id" : "FORMULA_bad8a34dee43f32a563d9f1c5d7f5719",
"formula" : "U(a,x)=D_{-a-\\tfrac12}(x)",
"semanticFormula" : "\\paraU@{a}{x} = \\WhittakerparaD{-a-\\tfrac12}@{x}",
"confidence" : 0.8633129872660568,
"translations" : {
"Mathematica" : {
"translation" : "ParabolicCylinderD[- 1/2 -(a), x] == ParabolicCylinderD[- a -Divide[1,2], x]",
"translationInformation" : {
"subEquations" : [ "ParabolicCylinderD[- 1/2 -(a), x] = ParabolicCylinderD[- a -Divide[1,2], x]" ],
"freeVariables" : [ "a", "x" ],
"tokenTranslations" : {
"\\paraU" : "Parabolic cylinder function U; Example: \\paraU@{a}{z}\nWill be translated to: ParabolicCylinderD[- 1/2 -($0), $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/12.4#E1\nMathematica: https://reference.wolfram.com/language/ref/ParabolicCylinderD.html",
"\\WhittakerparaD" : "Whittaker's notation D for the parabolic cylinder function; Example: \\WhittakerparaD{\\nu}@{z}\nWill be translated to: ParabolicCylinderD[$0, $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/12.1\nMathematica: https://reference.wolfram.com/language/ref/ParabolicCylinderD.html"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "ERROR",
"numberOfTests" : 1,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 1,
"crashed" : false,
"testCalculationsGroup" : [ {
"lhs" : "ParabolicCylinderD[- 1/2 -(a), x]",
"rhs" : "ParabolicCylinderD[- a -Divide[1,2], x]",
"testExpression" : "(ParabolicCylinderD[- 1/2 -(a), x])-(ParabolicCylinderD[- a -Divide[1,2], x])",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\paraU [\\paraU]"
}
}
},
"Maple" : {
"translation" : "CylinderU(a, x) = CylinderD(- a -(1)/(2), x)",
"translationInformation" : {
"subEquations" : [ "CylinderU(a, x) = CylinderD(- a -(1)/(2), x)" ],
"freeVariables" : [ "a", "x" ],
"tokenTranslations" : {
"\\paraU" : "Parabolic cylinder function U; Example: \\paraU@{a}{z}\nWill be translated to: CylinderU($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/12.4#E1\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=CylinderU",
"\\WhittakerparaD" : "Whittaker's notation D for the parabolic cylinder function; Example: \\WhittakerparaD{\\nu}@{z}\nWill be translated to: CylinderD($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/12.1\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=CylinderD"
}
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 7,
"word" : 42
} ],
"includes" : [ "a", "f(a,z)", "U", "U(a,z)", "D_{p}(x)", "V(a,z)" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "parabolic cylinder",
"score" : 0.6202889650070861
}, {
"definition" : "function",
"score" : 0.5835050192745167
}, {
"definition" : "Abramowitz",
"score" : 0.5730317852477183
}, {
"definition" : "notation",
"score" : 0.5730317852477183
}, {
"definition" : "Whittaker",
"score" : 0.5730317852477183
}, {
"definition" : "Stegun",
"score" : 0.5243095238095238
} ]
}