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 \;_{1}\phi_0 (a;q,z) = \frac {1-az}{1-z} \;_{1}\phi_0 (a;q,qz).}
... is translated to the CAS output ...
Semantic latex: _{1}\phi_0 (a;q,z) = \frac {1-az}{1-z} _{1}\phi_0 (a;q,qz)
Confidence: 0
Mathematica
Translation: Subscript[$0, 1]*Subscript[\[Phi], 0][a ; q , z] == Subscript[Divide[1 - a*z,1 - z], 1]*Subscript[\[Phi], 0][a ; q , q*z]
Information
Sub Equations
- Subscript[$0, 1]*Subscript[\[Phi], 0][a ; q , z] = Subscript[Divide[1 - a*z,1 - z], 1]*Subscript[\[Phi], 0][a ; q , q*z]
Free variables
- Subscript[\[Phi], 0]
- a
- q
- z
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
SymPy
Translation: Symbol('{$0}_{1}')*Symbol('{Symbol('phi')}_{0}')(a ; q , z) == Symbol('{(1 - a*z)/(1 - z)}_{1}')*Symbol('{Symbol('phi')}_{0}')(a ; q , q*z)
Information
Sub Equations
- Symbol('{$0}_{1}')*Symbol('{Symbol('phi')}_{0}')(a ; q , z) = Symbol('{(1 - a*z)/(1 - z)}_{1}')*Symbol('{Symbol('phi')}_{0}')(a ; q , q*z)
Free variables
- Symbol('{Symbol('phi')}_{0}')
- a
- q
- z
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Maple
Translation: $0[1]*phi[0](a ; q , z) = (1 - a*z)/(1 - z)[1]*phi[0](a ; q , q*z)
Information
Sub Equations
- $0[1]*phi[0](a ; q , z) = (1 - a*z)/(1 - z)[1]*phi[0](a ; q , q*z)
Free variables
- a
- phi[0]
- q
- 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
Complete translation information:
{
"id" : "FORMULA_0da6db25cfcb082b0636ab891fd44892",
"formula" : "_{1}\\phi_0 (a;q,z) = \n\\frac {1-az}{1-z} _{1}\\phi_0 (a;q,qz)",
"semanticFormula" : "_{1}\\phi_0 (a;q,z) = \n\\frac {1-az}{1-z} _{1}\\phi_0 (a;q,qz)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "Subscript[$0, 1]*Subscript[\\[Phi], 0][a ; q , z] == Subscript[Divide[1 - a*z,1 - z], 1]*Subscript[\\[Phi], 0][a ; q , q*z]",
"translationInformation" : {
"subEquations" : [ "Subscript[$0, 1]*Subscript[\\[Phi], 0][a ; q , z] = Subscript[Divide[1 - a*z,1 - z], 1]*Subscript[\\[Phi], 0][a ; q , q*z]" ],
"freeVariables" : [ "Subscript[\\[Phi], 0]", "a", "q", "z" ],
"tokenTranslations" : {
"\\phi" : "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('{$0}_{1}')*Symbol('{Symbol('phi')}_{0}')(a ; q , z) == Symbol('{(1 - a*z)/(1 - z)}_{1}')*Symbol('{Symbol('phi')}_{0}')(a ; q , q*z)",
"translationInformation" : {
"subEquations" : [ "Symbol('{$0}_{1}')*Symbol('{Symbol('phi')}_{0}')(a ; q , z) = Symbol('{(1 - a*z)/(1 - z)}_{1}')*Symbol('{Symbol('phi')}_{0}')(a ; q , q*z)" ],
"freeVariables" : [ "Symbol('{Symbol('phi')}_{0}')", "a", "q", "z" ],
"tokenTranslations" : {
"\\phi" : "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" : "$0[1]*phi[0](a ; q , z) = (1 - a*z)/(1 - z)[1]*phi[0](a ; q , q*z)",
"translationInformation" : {
"subEquations" : [ "$0[1]*phi[0](a ; q , z) = (1 - a*z)/(1 - z)[1]*phi[0](a ; q , q*z)" ],
"freeVariables" : [ "a", "phi[0]", "q", "z" ],
"tokenTranslations" : {
"\\phi" : "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", "\\;_{1}\\phi_0 (a;q,z) = \\frac {1-az}{1-z} \\;_{1}\\phi_0 (a;q,qz)", "q" ],
"isPartOf" : [ "\\;_{1}\\phi_0 (a;q,z) = \\frac {1-az}{1-z} \\;_{1}\\phi_0 (a;q,qz)" ],
"definiens" : [ ]
}