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 G(x;\sigma)}
... is translated to the CAS output ...
Semantic latex: G(x;\sigma)
Confidence: 0
Mathematica
Translation: G[x ; \[Sigma]]
Information
Sub Equations
- G[x ; \[Sigma]]
Free variables
- \[Sigma]
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: G(x ; Symbol('sigma'))
Information
Sub Equations
- G(x ; Symbol('sigma'))
Free variables
- Symbol('sigma')
- x
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: G(x ; sigma)
Information
Sub Equations
- G(x ; sigma)
Free variables
- sigma
- x
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
- Gaussian profile
- Lorentzian profile
- Voigt profile
- shift from the line center
- case
Complete translation information:
{
"id" : "FORMULA_9c53d2626c1546d9020a8be0d894e205",
"formula" : "G(x;\\sigma)",
"semanticFormula" : "G(x;\\sigma)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "G[x ; \\[Sigma]]",
"translationInformation" : {
"subEquations" : [ "G[x ; \\[Sigma]]" ],
"freeVariables" : [ "\\[Sigma]", "x" ],
"tokenTranslations" : {
"G" : "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" : "G(x ; Symbol('sigma'))",
"translationInformation" : {
"subEquations" : [ "G(x ; Symbol('sigma'))" ],
"freeVariables" : [ "Symbol('sigma')", "x" ],
"tokenTranslations" : {
"G" : "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" : "G(x ; sigma)",
"translationInformation" : {
"subEquations" : [ "G(x ; sigma)" ],
"freeVariables" : [ "sigma", "x" ],
"tokenTranslations" : {
"G" : "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" : 1,
"sentence" : 1,
"word" : 17
}, {
"section" : 1,
"sentence" : 3,
"word" : 14
} ],
"includes" : [ "x", "L(x;\\gamma)" ],
"isPartOf" : [ "V(x;\\sigma,\\gamma) \\equiv \\int_{-\\infty}^\\infty G(x';\\sigma)L(x-x';\\gamma)\\, dx'", "G(x;\\sigma) \\equiv \\frac{e^{-x^2/(2\\sigma^2)}}{\\sigma \\sqrt{2\\pi}}", "L(x;\\gamma)", "L(x;\\gamma) \\equiv \\frac{\\gamma}{\\pi(x^2+\\gamma^2)}" ],
"definiens" : [ {
"definition" : "Gaussian profile",
"score" : 0.7125985104912714
}, {
"definition" : "Lorentzian profile",
"score" : 0.7125985104912714
}, {
"definition" : "Voigt profile",
"score" : 0.7125985104912714
}, {
"definition" : "shift from the line center",
"score" : 0.6859086196238077
}, {
"definition" : "case",
"score" : 0.5947534537721367
} ]
}