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 f(-ia,-ze^{(1/4)\pi i}), f(ia,-ze^{-(1/4)\pi i})\text{ and }f(ia,ze^{-(1/4)\pi i})\,}
... is translated to the CAS output ...
Semantic latex: f(- \iunit a , - ze^{(1 / 4) \cpi \iunit}) , f(\iunit a , - ze^{-(1 / 4) \cpi \iunit}) and f(\iunit a , ze^{-(1 / 4) \cpi \iunit})
Confidence: 0
Mathematica
Translation: f[- I*a , - z*(e)^((1/4)*Pi*I)], f[I*a , - z*(e)^(-(1/4)*Pi*I)]* a*n*d*f[I*a , z*(e)^(-(1/4)*Pi*I)]
Information
Sub Equations
- f[- I*a , - z*(e)^((1/4)*Pi*I)], f[I*a , - z*(e)^(-(1/4)*Pi*I)]* a*n*d*f[I*a , z*(e)^(-(1/4)*Pi*I)]
Free variables
- a
- d
- e
- n
- z
Symbol info
- Pi was translated to: Pi
- Imaginary unit was translated to: I
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: f(- I*a , - z*(e)**((1/4)*pi*I)), f(I*a , - z*(e)**(-(1/4)*pi*I))* a*n*d*f(I*a , z*(e)**(-(1/4)*pi*I))
Information
Sub Equations
- f(- I*a , - z*(e)**((1/4)*pi*I)), f(I*a , - z*(e)**(-(1/4)*pi*I))* a*n*d*f(I*a , z*(e)**(-(1/4)*pi*I))
Free variables
- a
- d
- e
- n
- z
Symbol info
- Pi was translated to: pi
- Imaginary unit was translated to: I
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: f(- I*a , - z*(e)^((1/4)*Pi*I)), f(I*a , - z*(e)^(-(1/4)*Pi*I))* a*n*d*f(I*a , z*(e)^(-(1/4)*Pi*I))
Information
Sub Equations
- f(- I*a , - z*(e)^((1/4)*Pi*I)), f(I*a , - z*(e)^(-(1/4)*Pi*I))* a*n*d*f(I*a , z*(e)^(-(1/4)*Pi*I))
Free variables
- a
- d
- e
- n
- z
Symbol info
- Pi was translated to: Pi
- Imaginary unit was translated to: I
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- b
- solution
- solution of equation
- symmetry
Complete translation information:
{
"id" : "FORMULA_e3c4acb94358db9f9a261978389dd11b",
"formula" : "f(-ia,-ze^{(1/4)\\pi i}), f(ia,-ze^{-(1/4)\\pi i})\\text{ and }f(ia,ze^{-(1/4)\\pi i})",
"semanticFormula" : "f(- \\iunit a , - ze^{(1 / 4) \\cpi \\iunit}) , f(\\iunit a , - ze^{-(1 / 4) \\cpi \\iunit}) and f(\\iunit a , ze^{-(1 / 4) \\cpi \\iunit})",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "f[- I*a , - z*(e)^((1/4)*Pi*I)], f[I*a , - z*(e)^(-(1/4)*Pi*I)]* a*n*d*f[I*a , z*(e)^(-(1/4)*Pi*I)]",
"translationInformation" : {
"subEquations" : [ "f[- I*a , - z*(e)^((1/4)*Pi*I)], f[I*a , - z*(e)^(-(1/4)*Pi*I)]* a*n*d*f[I*a , z*(e)^(-(1/4)*Pi*I)]" ],
"freeVariables" : [ "a", "d", "e", "n", "z" ],
"tokenTranslations" : {
"\\cpi" : "Pi was translated to: Pi",
"\\iunit" : "Imaginary unit was translated to: I",
"f" : "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" : "f(- I*a , - z*(e)**((1/4)*pi*I)), f(I*a , - z*(e)**(-(1/4)*pi*I))* a*n*d*f(I*a , z*(e)**(-(1/4)*pi*I))",
"translationInformation" : {
"subEquations" : [ "f(- I*a , - z*(e)**((1/4)*pi*I)), f(I*a , - z*(e)**(-(1/4)*pi*I))* a*n*d*f(I*a , z*(e)**(-(1/4)*pi*I))" ],
"freeVariables" : [ "a", "d", "e", "n", "z" ],
"tokenTranslations" : {
"\\cpi" : "Pi was translated to: pi",
"\\iunit" : "Imaginary unit was translated to: I",
"f" : "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" : "f(- I*a , - z*(e)^((1/4)*Pi*I)), f(I*a , - z*(e)^(-(1/4)*Pi*I))* a*n*d*f(I*a , z*(e)^(-(1/4)*Pi*I))",
"translationInformation" : {
"subEquations" : [ "f(- I*a , - z*(e)^((1/4)*Pi*I)), f(I*a , - z*(e)^(-(1/4)*Pi*I))* a*n*d*f(I*a , z*(e)^(-(1/4)*Pi*I))" ],
"freeVariables" : [ "a", "d", "e", "n", "z" ],
"tokenTranslations" : {
"\\cpi" : "Pi was translated to: Pi",
"\\iunit" : "Imaginary unit was translated to: I",
"f" : "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" : 0,
"sentence" : 3,
"word" : 43
} ],
"includes" : [ "f(-ia,ze^{(1/4)\\pi i})", "f(a,z)" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "b",
"score" : 0.8948832601765624
}, {
"definition" : "solution",
"score" : 0.8948832601765624
}, {
"definition" : "solution of equation",
"score" : 0.6601229053380933
}, {
"definition" : "symmetry",
"score" : 0.6601229053380933
} ]
}