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 q = e^{\pi i \tau}}
... is translated to the CAS output ...
Semantic latex: q = \expe^{\cpi \iunit \tau}
Confidence: 0
Mathematica
Translation: q == Exp[Pi*I*\[Tau]]
Information
Sub Equations
- q = Exp[Pi*I*\[Tau]]
Free variables
- \[Tau]
- q
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Imaginary unit was translated to: I
- Pi was translated to: Pi
Tests
Symbolic
Test expression: (q)-(Exp[Pi*I*\[Tau]])
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: q == exp(pi*I*Symbol('tau'))
Information
Sub Equations
- q = exp(pi*I*Symbol('tau'))
Free variables
- Symbol('tau')
- q
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Imaginary unit was translated to: I
- Pi was translated to: pi
Tests
Symbolic
Numeric
Maple
Translation: q = exp(Pi*I*tau)
Information
Sub Equations
- q = exp(Pi*I*tau)
Free variables
- q
- tau
Symbol info
- Recognizes e with power as the exponential function. It was translated as a function.
- Imaginary unit was translated to: I
- Pi was translated to: Pi
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- nome
- q-expansion
- term of the half-period
- graded character of any element
- expansion
- Hauptmodul for the group
- term of the Dedekind eta function
- conjugacy class 4c of the monster group
- function
- Weierstrass 's elliptic function
- fundamental pair of period
- theta function
- monster vertex algebra
Complete translation information:
{
"id" : "FORMULA_337afd813b14137226c62a73aade6478",
"formula" : "q = e^{\\pi i \\tau}",
"semanticFormula" : "q = \\expe^{\\cpi \\iunit \\tau}",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "q == Exp[Pi*I*\\[Tau]]",
"translationInformation" : {
"subEquations" : [ "q = Exp[Pi*I*\\[Tau]]" ],
"freeVariables" : [ "\\[Tau]", "q" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\iunit" : "Imaginary unit was translated to: I",
"\\cpi" : "Pi was translated to: Pi"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "ERROR",
"numberOfTests" : 1,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 1,
"crashed" : false,
"testCalculationsGroup" : [ {
"lhs" : "q",
"rhs" : "Exp[Pi*I*\\[Tau]]",
"testExpression" : "(q)-(Exp[Pi*I*\\[Tau]])",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "q == exp(pi*I*Symbol('tau'))",
"translationInformation" : {
"subEquations" : [ "q = exp(pi*I*Symbol('tau'))" ],
"freeVariables" : [ "Symbol('tau')", "q" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\iunit" : "Imaginary unit was translated to: I",
"\\cpi" : "Pi was translated to: pi"
}
}
},
"Maple" : {
"translation" : "q = exp(Pi*I*tau)",
"translationInformation" : {
"subEquations" : [ "q = exp(Pi*I*tau)" ],
"freeVariables" : [ "q", "tau" ],
"tokenTranslations" : {
"\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
"\\iunit" : "Imaginary unit was translated to: I",
"\\cpi" : "Pi was translated to: Pi"
}
}
}
},
"positions" : [ {
"section" : 0,
"sentence" : 3,
"word" : 4
}, {
"section" : 2,
"sentence" : 1,
"word" : 20
} ],
"includes" : [ "\\tau", "q" ],
"isPartOf" : [ "q=e^{2\\pi i\\tau }" ],
"definiens" : [ {
"definition" : "nome",
"score" : 0.8869384888466118
}, {
"definition" : "q-expansion",
"score" : 0.6687181434333315
}, {
"definition" : "term of the half-period",
"score" : 0.3594939591774544
}, {
"definition" : "graded character of any element",
"score" : 0.351598510491561
}, {
"definition" : "expansion",
"score" : 0.3249086196240972
}, {
"definition" : "Hauptmodul for the group",
"score" : 0.3249086196240972
}, {
"definition" : "term of the Dedekind eta function",
"score" : 0.29297012797898336
}, {
"definition" : "conjugacy class 4c of the monster group",
"score" : 0.28507467929308994
}, {
"definition" : "function",
"score" : 0.28507467929308994
}, {
"definition" : "Weierstrass 's elliptic function",
"score" : 0.2457129482196155
}, {
"definition" : "fundamental pair of period",
"score" : 0.19699068678142098
}, {
"definition" : "theta function",
"score" : 0.19699068678142098
}, {
"definition" : "monster vertex algebra",
"score" : 0.14390742558173894
} ]
}