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)_k}
... is translated to the CAS output ...
Semantic latex: \Pochhammersym{u}{k}
Confidence: 0.86818001314224
Mathematica
Translation: Pochhammer[u, k]
Information
Sub Equations
- Pochhammer[u, k]
Free variables
- k
- u
Symbol info
- Pochhammer symbol; Example: \Pochhammersym{a}{n}
Will be translated to: Pochhammer[$0, $1] Relevant links to definitions: DLMF: http://dlmf.nist.gov/5.2#iii Mathematica: https://reference.wolfram.com/language/ref/Pochhammer.html
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \Pochhammersym [\Pochhammersym]
Tests
Symbolic
Numeric
Maple
Translation: pochhammer(u, k)
Information
Sub Equations
- pochhammer(u, k)
Free variables
- k
- u
Symbol info
- Pochhammer symbol; Example: \Pochhammersym{a}{n}
Will be translated to: pochhammer($0, $1) Relevant links to definitions: DLMF: http://dlmf.nist.gov/5.2#iii Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=pochhammer
Tests
Symbolic
Numeric
Dependency Graph Information
Description
- factorial
- Pochhammer symbol
- detailed list
- hypergeometric function
- property
Complete translation information:
{
"id" : "FORMULA_5a490b60e4fbc84aa4536ef0609d6fc3",
"formula" : "(u)_k",
"semanticFormula" : "\\Pochhammersym{u}{k}",
"confidence" : 0.8681800131422367,
"translations" : {
"Mathematica" : {
"translation" : "Pochhammer[u, k]",
"translationInformation" : {
"subEquations" : [ "Pochhammer[u, k]" ],
"freeVariables" : [ "k", "u" ],
"tokenTranslations" : {
"\\Pochhammersym" : "Pochhammer symbol; Example: \\Pochhammersym{a}{n}\nWill be translated to: Pochhammer[$0, $1]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/5.2#iii\nMathematica: https://reference.wolfram.com/language/ref/Pochhammer.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: \\Pochhammersym [\\Pochhammersym]"
}
},
"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" : "pochhammer(u, k)",
"translationInformation" : {
"subEquations" : [ "pochhammer(u, k)" ],
"freeVariables" : [ "k", "u" ],
"tokenTranslations" : {
"\\Pochhammersym" : "Pochhammer symbol; Example: \\Pochhammersym{a}{n}\nWill be translated to: pochhammer($0, $1)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/5.2#iii\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=pochhammer"
}
},
"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" : 2,
"word" : 2
} ],
"includes" : [ ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "factorial",
"score" : 0.6859086196238077
}, {
"definition" : "Pochhammer symbol",
"score" : 0.5988174995334326
}, {
"definition" : "detailed list",
"score" : 0.5500952380952381
}, {
"definition" : "hypergeometric function",
"score" : 0.5500952380952381
}, {
"definition" : "property",
"score" : 0.5049074255814494
} ]
}