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 \wp}
... is translated to the CAS output ...
Semantic latex: \Weierstrasspinvar@{z}{g_2}{g_3}
Confidence: 0.60805759803995
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \Weierstrasspinvar [\Weierstrasspinvar]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \Weierstrasspinvar [\Weierstrasspinvar]
Tests
Symbolic
Numeric
Maple
Translation: WeierstrassP(z, g[2], g[3])
Information
Sub Equations
- WeierstrassP(z, g[2], g[3])
Free variables
- g[2]
- g[3]
- z
Symbol info
- Weierstrass elliptic function; Example: \Weierstrasspinvar@@{z}{g_2}{g_3}
Will be translated to: WeierstrassP($0, $1, $2) Relevant links to definitions: DLMF: http://dlmf.nist.gov/23.3#E8 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=WeierstrassP
Tests
Symbolic
Numeric
Dependency Graph Information
Description
- Weierstrass
- elliptic function
- constant
- Lamé 's equation
Complete translation information:
{
"id" : "FORMULA_1a13d972a2c8473f075ded6eca465169",
"formula" : "\\wp",
"semanticFormula" : "\\Weierstrasspinvar@{z}{g_2}{g_3}",
"confidence" : 0.6080575980399465,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\Weierstrasspinvar [\\Weierstrasspinvar]"
}
},
"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: \\Weierstrasspinvar [\\Weierstrasspinvar]"
}
},
"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" : "WeierstrassP(z, g[2], g[3])",
"translationInformation" : {
"subEquations" : [ "WeierstrassP(z, g[2], g[3])" ],
"freeVariables" : [ "g[2]", "g[3]", "z" ],
"tokenTranslations" : {
"\\Weierstrasspinvar" : "Weierstrass elliptic function; Example: \\Weierstrasspinvar@@{z}{g_2}{g_3}\nWill be translated to: WeierstrassP($0, $1, $2)\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/23.3#E8\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=WeierstrassP"
}
},
"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" : 1,
"sentence" : 0,
"word" : 14
} ],
"includes" : [ ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "Weierstrass",
"score" : 0.722
}, {
"definition" : "elliptic function",
"score" : 0.7125985104912714
}, {
"definition" : "constant",
"score" : 0.6460746792928004
}, {
"definition" : "Lamé 's equation",
"score" : 0.5988174995334326
} ]
}