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(a,-z), f(-a,iz)\text{ and }f(-a,-iz).\,}
... is translated to the CAS output ...
Semantic latex: f(a , - z) , f(- a , \iunit z) and f(- a , - \iunit z)
Confidence: 0
Mathematica
Translation: f[a , - z], f[- a , I*z]* a*n*d*f[- a , - I*z]
Information
Sub Equations
- f[a , - z], f[- a , I*z]* a*n*d*f[- a , - I*z]
Free variables
- a
- d
- n
- z
Symbol info
- 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(a , - z), f(- a , I*z)* a*n*d*f(- a , - I*z)
Information
Sub Equations
- f(a , - z), f(- a , I*z)* a*n*d*f(- a , - I*z)
Free variables
- a
- d
- n
- z
Symbol info
- 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(a , - z), f(- a , I*z)* a*n*d*f(- a , - I*z)
Information
Sub Equations
- f(a , - z), f(- a , I*z)* a*n*d*f(- a , - I*z)
Free variables
- a
- d
- n
- z
Symbol info
- 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
Is part of
Complete translation information:
{
"id" : "FORMULA_4066657d81f645556166fa662782dd8f",
"formula" : "f(a,-z), f(-a,iz)\\text{ and }f(-a,-iz)",
"semanticFormula" : "f(a , - z) , f(- a , \\iunit z) and f(- a , - \\iunit z)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "f[a , - z], f[- a , I*z]* a*n*d*f[- a , - I*z]",
"translationInformation" : {
"subEquations" : [ "f[a , - z], f[- a , I*z]* a*n*d*f[- a , - I*z]" ],
"freeVariables" : [ "a", "d", "n", "z" ],
"tokenTranslations" : {
"\\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(a , - z), f(- a , I*z)* a*n*d*f(- a , - I*z)",
"translationInformation" : {
"subEquations" : [ "f(a , - z), f(- a , I*z)* a*n*d*f(- a , - I*z)" ],
"freeVariables" : [ "a", "d", "n", "z" ],
"tokenTranslations" : {
"\\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(a , - z), f(- a , I*z)* a*n*d*f(- a , - I*z)",
"translationInformation" : {
"subEquations" : [ "f(a , - z), f(- a , I*z)* a*n*d*f(- a , - I*z)" ],
"freeVariables" : [ "a", "d", "n", "z" ],
"tokenTranslations" : {
"\\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" : [ ],
"includes" : [ "a", "z", "V(a,z)", "f(a,-z), f(-a,iz)\\text{ and }f(-a,-iz).", "f(a,z)", "U(a,z)" ],
"isPartOf" : [ "f(a,-z), f(-a,iz)\\text{ and }f(-a,-iz)." ],
"definiens" : [ ]
}