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 \lambda(\tau) = 16q - 128q^2 + 704 q^3 - 3072q^4 + 11488q^5 - 38400q^6 + \dots}
... is translated to the CAS output ...
Semantic latex: \modularlambdatau@{\tau} = 16 q - 128 q^2 + 704 q^3 - 3072 q^4 + 11488 q^5 - 38400 q^6 + \dots
Confidence: 0.6805
Mathematica
Translation: ModularLambda[\[Tau]] == 16*q - 128*(q)^(2)+ 704*(q)^(3)- 3072*(q)^(4)+ 11488*(q)^(5)- 38400*(q)^(6)+ \[Ellipsis]
Information
Sub Equations
- ModularLambda[\[Tau]] = 16*q - 128*(q)^(2)+ 704*(q)^(3)- 3072*(q)^(4)+ 11488*(q)^(5)- 38400*(q)^(6)+ \[Ellipsis]
Free variables
- \[Tau]
- q
Symbol info
- Elliptic modular function; Example: \modularlambdatau@{\tau}
Will be translated to: ModularLambda[$0] Relevant links to definitions: DLMF: http://dlmf.nist.gov/23.15#E6 Mathematica: https://reference.wolfram.com/language/ref/ModularLambda.html
Tests
Symbolic
Test expression: (ModularLambda[\[Tau]])-(16*q - 128*(q)^(2)+ 704*(q)^(3)- 3072*(q)^(4)+ 11488*(q)^(5)- 38400*(q)^(6)+ \[Ellipsis])
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \modularlambdatau [\modularlambdatau]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \modularlambdatau [\modularlambdatau]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- q-expansion
- nome
Complete translation information:
{
"id" : "FORMULA_76432f069b454f736f4e4f2d3ec06bcf",
"formula" : "\\lambda(\\tau) = 16q - 128q^2 + 704 q^3 - 3072q^4 + 11488q^5 - 38400q^6 + \\dots",
"semanticFormula" : "\\modularlambdatau@{\\tau} = 16 q - 128 q^2 + 704 q^3 - 3072 q^4 + 11488 q^5 - 38400 q^6 + \\dots",
"confidence" : 0.6805,
"translations" : {
"Mathematica" : {
"translation" : "ModularLambda[\\[Tau]] == 16*q - 128*(q)^(2)+ 704*(q)^(3)- 3072*(q)^(4)+ 11488*(q)^(5)- 38400*(q)^(6)+ \\[Ellipsis]",
"translationInformation" : {
"subEquations" : [ "ModularLambda[\\[Tau]] = 16*q - 128*(q)^(2)+ 704*(q)^(3)- 3072*(q)^(4)+ 11488*(q)^(5)- 38400*(q)^(6)+ \\[Ellipsis]" ],
"freeVariables" : [ "\\[Tau]", "q" ],
"tokenTranslations" : {
"\\modularlambdatau" : "Elliptic modular function; Example: \\modularlambdatau@{\\tau}\nWill be translated to: ModularLambda[$0]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/23.15#E6\nMathematica: https://reference.wolfram.com/language/ref/ModularLambda.html"
}
},
"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" : "ModularLambda[\\[Tau]]",
"rhs" : "16*q - 128*(q)^(2)+ 704*(q)^(3)- 3072*(q)^(4)+ 11488*(q)^(5)- 38400*(q)^(6)+ \\[Ellipsis]",
"testExpression" : "(ModularLambda[\\[Tau]])-(16*q - 128*(q)^(2)+ 704*(q)^(3)- 3072*(q)^(4)+ 11488*(q)^(5)- 38400*(q)^(6)+ \\[Ellipsis])",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\modularlambdatau [\\modularlambdatau]"
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\modularlambdatau [\\modularlambdatau]"
}
}
}
},
"positions" : [ {
"section" : 0,
"sentence" : 3,
"word" : 13
} ],
"includes" : [ "\\tau", "\\lambda(\\tau)", "\\lambda", "q" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "q-expansion",
"score" : 0.6859086196238077
}, {
"definition" : "nome",
"score" : 0.6460746792928004
} ]
}