LaTeX to CAS translator
Jump to navigation
Jump to search
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 \Gamma(z)}
... is translated to the CAS output ...
Semantic latex: \Gamma(z)
Confidence: 0
Mathematica
Translation: \[CapitalGamma][z]
Information
Sub Equations
- \[CapitalGamma][z]
Free variables
- \[CapitalGamma]
- z
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: Symbol('Gamma')(z)
Information
Sub Equations
- Symbol('Gamma')(z)
Free variables
- Symbol('Gamma')
- z
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: Gamma(z)
Information
Sub Equations
- Gamma(z)
Free variables
- Gamma
- z
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- article
- ingoing dependency
- introduction
- next equation in the same article
- counterexample
Complete translation information:
{
"id" : "FORMULA_c5accc69791b469f2ce6bde7e27a4506",
"formula" : "\\Gamma(z)",
"semanticFormula" : "\\Gamma(z)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[CapitalGamma][z]",
"translationInformation" : {
"subEquations" : [ "\\[CapitalGamma][z]" ],
"freeVariables" : [ "\\[CapitalGamma]", "z" ],
"tokenTranslations" : {
"\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
},
"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" : "Symbol('Gamma')(z)",
"translationInformation" : {
"subEquations" : [ "Symbol('Gamma')(z)" ],
"freeVariables" : [ "Symbol('Gamma')", "z" ],
"tokenTranslations" : {
"\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
},
"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" : "Gamma(z)",
"translationInformation" : {
"subEquations" : [ "Gamma(z)" ],
"freeVariables" : [ "Gamma", "z" ],
"tokenTranslations" : {
"\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
}
},
"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" : 4,
"sentence" : 25,
"word" : 8
} ],
"includes" : [ "z" ],
"isPartOf" : [ "P_n^{(\\alpha,\\beta)} (z) = \\frac{\\Gamma (\\alpha+n+1)}{n!\\Gamma (\\alpha+\\beta+n+1)} \\sum_{m=0}^n \\binom{n}{m} \\frac{\\Gamma (\\alpha + \\beta + n + m + 1)}{\\Gamma (\\alpha + m + 1)} \\left(\\frac{z-1}{2}\\right)^m" ],
"definiens" : [ {
"definition" : "article",
"score" : 0.6859086196238077
}, {
"definition" : "ingoing dependency",
"score" : 0.6460746792928004
}, {
"definition" : "introduction",
"score" : 0.6460746792928004
}, {
"definition" : "next equation in the same article",
"score" : 0.6214433446396005
}, {
"definition" : "counterexample",
"score" : 0.5549195134411294
} ]
}