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 \mathbf{E}_{\nu-1}(z)-\mathbf{E}_{\nu+1}(z)=2\dfrac{\partial}{\partial z}\mathbf{E}_\nu(z)}
... is translated to the CAS output ...
Semantic latex: \WeberE{\nu-1}@{z} - \WeberE{\nu+1}@{z} = 2 \deriv [1]{ }{z} \WeberE{\nu}@{z}
Confidence: 0.91187178584076
Mathematica
Translation: WeberE[\[Nu]- 1, z]- WeberE[\[Nu]+ 1, z] == 2*D[WeberE[\[Nu], z], {z, 1}]
Information
Sub Equations
- WeberE[\[Nu]- 1, z]- WeberE[\[Nu]+ 1, z] = 2*D[WeberE[\[Nu], z], {z, 1}]
Free variables
- \[Nu]
- z
Symbol info
- Weber function; Example: \WeberE{v}@{z}
Will be translated to: WeberE[$0, $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/11.10#E2 Mathematica: https://reference.wolfram.com/language/ref/WeberE.html
- Derivative; Example: \deriv[n]{f}{x}
Will be translated to: D[$1, {$2, $0}] Relevant links to definitions: DLMF: http://dlmf.nist.gov/1.4#E4 Mathematica: https://reference.wolfram.com/language/ref/D.html
Tests
Symbolic
Test expression: (WeberE[\[Nu]- 1, z]- WeberE[\[Nu]+ 1, z])-(2*D[WeberE[\[Nu], z], {z, 1}])
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: \WeberE [\WeberE]
Tests
Symbolic
Numeric
Maple
Translation: WeberE(nu - 1, z)- WeberE(nu + 1, z) = 2*diff(WeberE(nu, z), [z$(1)])
Information
Sub Equations
- WeberE(nu - 1, z)- WeberE(nu + 1, z) = 2*diff(WeberE(nu, z), [z$(1)])
Free variables
- nu
- z
Symbol info
- Weber function; Example: \WeberE{v}@{z}
Will be translated to: WeberE($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/11.10#E2 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=AngerJ
- Derivative; Example: \deriv[n]{f}{x}
Will be translated to: diff($1, [$2$($0)]) Relevant links to definitions: DLMF: http://dlmf.nist.gov/1.4#E4 Maple: https://www.maplesoft.com/support/help/Maple/view.aspx?path=diff
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- anger
- Weber function
- homogeneous form of delay differential equation
- inhomogeneous form of delay differential equation
Complete translation information:
{
"id" : "FORMULA_79bfab9bc4b30a91c57cffe28fc59f97",
"formula" : "\\mathbf{E}_{\\nu-1}(z)-\\mathbf{E}_{\\nu+1}(z)=2\\dfrac{\\partial}{\\partial z}\\mathbf{E}_\\nu(z)",
"semanticFormula" : "\\WeberE{\\nu-1}@{z} - \\WeberE{\\nu+1}@{z} = 2 \\deriv [1]{ }{z} \\WeberE{\\nu}@{z}",
"confidence" : 0.9118717858407615,
"translations" : {
"Mathematica" : {
"translation" : "WeberE[\\[Nu]- 1, z]- WeberE[\\[Nu]+ 1, z] == 2*D[WeberE[\\[Nu], z], {z, 1}]",
"translationInformation" : {
"subEquations" : [ "WeberE[\\[Nu]- 1, z]- WeberE[\\[Nu]+ 1, z] = 2*D[WeberE[\\[Nu], z], {z, 1}]" ],
"freeVariables" : [ "\\[Nu]", "z" ],
"tokenTranslations" : {
"\\WeberE" : "Weber function; Example: \\WeberE{v}@{z}\nWill be translated to: WeberE[$0, $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/11.10#E2\nMathematica: https://reference.wolfram.com/language/ref/WeberE.html",
"\\deriv1" : "Derivative; Example: \\deriv[n]{f}{x}\nWill be translated to: D[$1, {$2, $0}]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/1.4#E4\nMathematica: https://reference.wolfram.com/language/ref/D.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" : "WeberE[\\[Nu]- 1, z]- WeberE[\\[Nu]+ 1, z]",
"rhs" : "2*D[WeberE[\\[Nu], z], {z, 1}]",
"testExpression" : "(WeberE[\\[Nu]- 1, z]- WeberE[\\[Nu]+ 1, z])-(2*D[WeberE[\\[Nu], z], {z, 1}])",
"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: \\WeberE [\\WeberE]"
}
}
},
"Maple" : {
"translation" : "WeberE(nu - 1, z)- WeberE(nu + 1, z) = 2*diff(WeberE(nu, z), [z$(1)])",
"translationInformation" : {
"subEquations" : [ "WeberE(nu - 1, z)- WeberE(nu + 1, z) = 2*diff(WeberE(nu, z), [z$(1)])" ],
"freeVariables" : [ "nu", "z" ],
"tokenTranslations" : {
"\\WeberE" : "Weber function; Example: \\WeberE{v}@{z}\nWill be translated to: WeberE($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/11.10#E2\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=AngerJ",
"\\deriv1" : "Derivative; Example: \\deriv[n]{f}{x}\nWill be translated to: diff($1, [$2$($0)])\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/1.4#E4\nMaple: https://www.maplesoft.com/support/help/Maple/view.aspx?path=diff"
}
}
}
},
"positions" : [ {
"section" : 5,
"sentence" : 0,
"word" : 14
} ],
"includes" : [ "\\mathbf{J}_{\\nu-1}(z)-\\mathbf{J}_{\\nu+1}(z)=2\\dfrac{\\partial}{\\partial z}\\mathbf{J}_\\nu(z)", "\\mathbf{J}_{\\nu}", "J_{\\nu}", "\\nu" ],
"isPartOf" : [ "\\mathbf{J}_{\\nu-1}(z)-\\mathbf{J}_{\\nu+1}(z)=2\\dfrac{\\partial}{\\partial z}\\mathbf{J}_\\nu(z)" ],
"definiens" : [ {
"definition" : "anger",
"score" : 0.8869384888466118
}, {
"definition" : "Weber function",
"score" : 0.7356153575222844
}, {
"definition" : "homogeneous form of delay differential equation",
"score" : 0.6954080343007951
}, {
"definition" : "inhomogeneous form of delay differential equation",
"score" : 0.5816270233429564
} ]
}