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 \eta }
... is translated to the CAS output ...
Semantic latex: \eta
Confidence: 0
Mathematica
Translation: \[Eta]
Information
Sub Equations
- \[Eta]
Free variables
- \[Eta]
Tests
Symbolic
Numeric
SymPy
Translation: Symbol('eta')
Information
Sub Equations
- Symbol('eta')
Free variables
- Symbol('eta')
Tests
Symbolic
Numeric
Maple
Translation: eta
Information
Sub Equations
- eta
Free variables
- eta
Tests
Symbolic
Numeric
Dependency Graph Information
Is part of
Description
- parameter
- FWHM
- function of full width
- function of Lorentz
- several possible choice
- mathematical definition
- simple formula
- pseudo-Voigt profile
- Full width
- %
- Gaussian
Complete translation information:
{
"id" : "FORMULA_ffe9f913124f345732e9f00fa258552e",
"formula" : "\\eta",
"semanticFormula" : "\\eta",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[Eta]",
"translationInformation" : {
"subEquations" : [ "\\[Eta]" ],
"freeVariables" : [ "\\[Eta]" ]
},
"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('eta')",
"translationInformation" : {
"subEquations" : [ "Symbol('eta')" ],
"freeVariables" : [ "Symbol('eta')" ]
},
"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" : "eta",
"translationInformation" : {
"subEquations" : [ "eta" ],
"freeVariables" : [ "eta" ]
},
"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" : 9,
"sentence" : 3,
"word" : 0
}, {
"section" : 9,
"sentence" : 4,
"word" : 7
}, {
"section" : 9,
"sentence" : 5,
"word" : 15
} ],
"includes" : [ ],
"isPartOf" : [ "V_p(x,f) = \\eta \\cdot L(x,f) + (1 - \\eta) \\cdot G(x,f)", "0 < \\eta < 1", "\\eta = 1.36603 (f_L/f) - 0.47719 (f_L/f)^2 + 0.11116(f_L/f)^3" ],
"definiens" : [ {
"definition" : "parameter",
"score" : 0.9058646707036236
}, {
"definition" : "FWHM",
"score" : 0.7475030892769492
}, {
"definition" : "function of full width",
"score" : 0.722
}, {
"definition" : "function of Lorentz",
"score" : 0.722
}, {
"definition" : "several possible choice",
"score" : 0.6596087687157589
}, {
"definition" : "mathematical definition",
"score" : 0.6329188778482951
}, {
"definition" : "simple formula",
"score" : 0.5939385827348387
}, {
"definition" : "pseudo-Voigt profile",
"score" : 0.5930849375172879
}, {
"definition" : "Full width",
"score" : 0.5672486918673748
}, {
"definition" : "%",
"score" : 0.5274147515363676
}, {
"definition" : "Gaussian",
"score" : 0.5274147515363676
} ]
}