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{M}_\alpha(x)=\mathbf{L}_\alpha(x)-I_\alpha(x)}
... is translated to the CAS output ...
Semantic latex: \modStruveM{\alpha}@{x} = \modStruveL{\alpha}@{x} - I_\alpha(x)
Confidence: 0.84430158730159
Mathematica
Translation: StruveL[\[Alpha], x] - BesselI[\[Alpha], x] == StruveL[\[Alpha], x]- Subscript[I, \[Alpha]][x]
Information
Sub Equations
- StruveL[\[Alpha], x] - BesselI[\[Alpha], x] = StruveL[\[Alpha], x]- Subscript[I, \[Alpha]][x]
Free variables
- \[Alpha]
- x
Symbol info
- Modified Struve function; Example: \modStruveL{\nu}@{z}
Will be translated to: StruveL[$0, $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/11.2#E2 Mathematica: https://reference.wolfram.com/language/ref/StruveL.html
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- Could be the second Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
- Associated Modified Struve function; Example: \modStruveM{\nu}@{z}
Will be translated to: StruveL[$0, $1] - BesselI[$0, $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/11.2#E6 Mathematica: https://reference.wolfram.com/language/ref/StruveL.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \modStruveM [\modStruveM]
Tests
Symbolic
Numeric
Maple
Translation: StruveL(alpha, x) - BesselI(alpha, x) = StruveL(alpha, x)- I[alpha](x)
Information
Sub Equations
- StruveL(alpha, x) - BesselI(alpha, x) = StruveL(alpha, x)- I[alpha](x)
Free variables
- alpha
- x
Symbol info
- Modified Struve function; Example: \modStruveL{\nu}@{z}
Will be translated to: StruveL($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/11.2#E2 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=StruveL
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- Could be the second Feigenbaum constant.
But this system doesn't know how to translate it as a constant. It was translated as a general letter.
- Associated Modified Struve function; Example: \modStruveM{\nu}@{z}
Will be translated to: StruveL($0, $1) - BesselI($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/11.2#E6 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=StruveL
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- second-kind version
- solution
- modified Struve function
- non-homogeneous Bessel 's differential equation
Complete translation information:
{
"id" : "FORMULA_018e609eb1f20c8003cd5e40c49c34ad",
"formula" : "\\mathbf{M}_\\alpha(x)=\\mathbf{L}_\\alpha(x)-I_\\alpha(x)",
"semanticFormula" : "\\modStruveM{\\alpha}@{x} = \\modStruveL{\\alpha}@{x} - I_\\alpha(x)",
"confidence" : 0.8443015873015872,
"translations" : {
"Mathematica" : {
"translation" : "StruveL[\\[Alpha], x] - BesselI[\\[Alpha], x] == StruveL[\\[Alpha], x]- Subscript[I, \\[Alpha]][x]",
"translationInformation" : {
"subEquations" : [ "StruveL[\\[Alpha], x] - BesselI[\\[Alpha], x] = StruveL[\\[Alpha], x]- Subscript[I, \\[Alpha]][x]" ],
"freeVariables" : [ "\\[Alpha]", "x" ],
"tokenTranslations" : {
"\\modStruveL" : "Modified Struve function; Example: \\modStruveL{\\nu}@{z}\nWill be translated to: StruveL[$0, $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/11.2#E2\nMathematica: https://reference.wolfram.com/language/ref/StruveL.html",
"I" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
"\\modStruveM" : "Associated Modified Struve function; Example: \\modStruveM{\\nu}@{z}\nWill be translated to: StruveL[$0, $1] - BesselI[$0, $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/11.2#E6\nMathematica: https://reference.wolfram.com/language/ref/StruveL.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: \\modStruveM [\\modStruveM]"
}
},
"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" : "StruveL(alpha, x) - BesselI(alpha, x) = StruveL(alpha, x)- I[alpha](x)",
"translationInformation" : {
"subEquations" : [ "StruveL(alpha, x) - BesselI(alpha, x) = StruveL(alpha, x)- I[alpha](x)" ],
"freeVariables" : [ "alpha", "x" ],
"tokenTranslations" : {
"\\modStruveL" : "Modified Struve function; Example: \\modStruveL{\\nu}@{z}\nWill be translated to: StruveL($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/11.2#E2\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=StruveL",
"I" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
"\\modStruveM" : "Associated Modified Struve function; Example: \\modStruveM{\\nu}@{z}\nWill be translated to: StruveL($0, $1) - BesselI($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/11.2#E6\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=StruveL"
}
},
"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" : 0,
"sentence" : 3,
"word" : 32
} ],
"includes" : [ "\\mathbf{K}_\\alpha(x)", "\\mathbf{L}_{\\alpha}(x)", "\\alpha", "\\mathbf{K}_\\alpha(x)=\\mathbf{H}_\\alpha(x)-Y_\\alpha(x)", "\\mathbf{H}_{\\alpha}(x)", "\\mathbf{M}_\\alpha(x)", "\\mathbf{H}_{\\alpha}(z)", "x", "Y_{\\alpha}(x)" ],
"isPartOf" : [ "\\mathbf{K}_\\alpha(x)=\\mathbf{H}_\\alpha(x)-Y_\\alpha(x)" ],
"definiens" : [ {
"definition" : "second-kind version",
"score" : 0.8276802639679156
}, {
"definition" : "solution",
"score" : 0.6288842031023242
}, {
"definition" : "modified Struve function",
"score" : 0.5329047619047619
}, {
"definition" : "non-homogeneous Bessel 's differential equation",
"score" : 0.5329047619047619
} ]
}