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 C^{((n-2)/2)}_k(\mathbf{x}\cdot\mathbf{y})}
... is translated to the CAS output ...
Semantic latex: \ultrasphpoly{(n - 2) / 2}{k}@{\mathbf{x} \cdot \mathbf{y}}
Confidence: 0.6805
Mathematica
Translation: GegenbauerC[k, (n - 2)/2, x * y]
Information
Sub Equations
- GegenbauerC[k, (n - 2)/2, x * y]
Free variables
- k
- n
- x
- y
Symbol info
- was translated to: *
- Ultraspherical Gegenbauer polynomial; Example: \ultrasphpoly{\lambda}{n}@{x}
Will be translated to: GegenbauerC[$1, $0, $2] Relevant links to definitions: DLMF: http://dlmf.nist.gov/18.3#T1.t1.r3 Mathematica: https://reference.wolfram.com/language/ref/GegenbauerC.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \ultrasphpoly [\ultrasphpoly]
Tests
Symbolic
Numeric
Maple
Translation: GegenbauerC(k, (n - 2)/2, x * y)
Information
Sub Equations
- GegenbauerC(k, (n - 2)/2, x * y)
Free variables
- k
- n
- x
- y
Symbol info
- was translated to: *
- Ultraspherical Gegenbauer polynomial; Example: \ultrasphpoly{\lambda}{n}@{x}
Will be translated to: GegenbauerC($1, $0, $2) Relevant links to definitions: DLMF: http://dlmf.nist.gov/18.3#T1.t1.r3 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=GegenbauerC
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- quantity
- spherical harmonic
- function
Complete translation information:
{
"id" : "FORMULA_aa65d6f8195e3383b4a53c5f694ead65",
"formula" : "C^{((n-2)/2)}_k(\\mathbf{x}\\cdot\\mathbf{y})",
"semanticFormula" : "\\ultrasphpoly{(n - 2) / 2}{k}@{\\mathbf{x} \\cdot \\mathbf{y}}",
"confidence" : 0.6805,
"translations" : {
"Mathematica" : {
"translation" : "GegenbauerC[k, (n - 2)/2, x * y]",
"translationInformation" : {
"subEquations" : [ "GegenbauerC[k, (n - 2)/2, x * y]" ],
"freeVariables" : [ "k", "n", "x", "y" ],
"tokenTranslations" : {
"\\cdot" : "was translated to: *",
"\\ultrasphpoly" : "Ultraspherical Gegenbauer polynomial; Example: \\ultrasphpoly{\\lambda}{n}@{x}\nWill be translated to: GegenbauerC[$1, $0, $2]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/18.3#T1.t1.r3\nMathematica: https://reference.wolfram.com/language/ref/GegenbauerC.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: \\ultrasphpoly [\\ultrasphpoly]"
}
},
"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" : "GegenbauerC(k, (n - 2)/2, x * y)",
"translationInformation" : {
"subEquations" : [ "GegenbauerC(k, (n - 2)/2, x * y)" ],
"freeVariables" : [ "k", "n", "x", "y" ],
"tokenTranslations" : {
"\\cdot" : "was translated to: *",
"\\ultrasphpoly" : "Ultraspherical Gegenbauer polynomial; Example: \\ultrasphpoly{\\lambda}{n}@{x}\nWill be translated to: GegenbauerC($1, $0, $2)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/18.3#T1.t1.r3\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=GegenbauerC"
}
},
"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" : 3,
"sentence" : 4,
"word" : 5
} ],
"includes" : [ "C_{n}^{(\\alpha)}(x)", "n", "\\mathbf{x}" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "quantity",
"score" : 0.722
}, {
"definition" : "spherical harmonic",
"score" : 0.722
}, {
"definition" : "function",
"score" : 0.6460746792928004
} ]
}