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 \kappa^2 = n(n+1)k^2 }
... is translated to the CAS output ...
Semantic latex: \kappa^2 = n(n+1)k^2
Confidence: 0
Mathematica
Translation: \[Kappa]^(2) == n*(n + 1)*(k)^(2)
Information
Sub Equations
- \[Kappa]^(2) = n*(n + 1)*(k)^(2)
Free variables
- \[Kappa]
- k
- n
Tests
Symbolic
Test expression: (\[Kappa]^(2))-(n*(n + 1)*(k)^(2))
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: (Symbol('kappa'))**(2) == n*(n + 1)*(k)**(2)
Information
Sub Equations
- (Symbol('kappa'))**(2) = n*(n + 1)*(k)**(2)
Free variables
- Symbol('kappa')
- k
- n
Tests
Symbolic
Numeric
Maple
Translation: (kappa)^(2) = n*(n + 1)*(k)^(2)
Information
Sub Equations
- (kappa)^(2) = n*(n + 1)*(k)^(2)
Free variables
- k
- kappa
- n
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- integer
- elliptic sine function
- case
- elliptic modulus
- meromorphic function
- solution
- whole complex plane
- important case
Complete translation information:
{
"id" : "FORMULA_adc28ee65abc15ba06fc89694e013c6f",
"formula" : "\\kappa^2 = n(n+1)k^2",
"semanticFormula" : "\\kappa^2 = n(n+1)k^2",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "\\[Kappa]^(2) == n*(n + 1)*(k)^(2)",
"translationInformation" : {
"subEquations" : [ "\\[Kappa]^(2) = n*(n + 1)*(k)^(2)" ],
"freeVariables" : [ "\\[Kappa]", "k", "n" ]
},
"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" : "\\[Kappa]^(2)",
"rhs" : "n*(n + 1)*(k)^(2)",
"testExpression" : "(\\[Kappa]^(2))-(n*(n + 1)*(k)^(2))",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "(Symbol('kappa'))**(2) == n*(n + 1)*(k)**(2)",
"translationInformation" : {
"subEquations" : [ "(Symbol('kappa'))**(2) = n*(n + 1)*(k)**(2)" ],
"freeVariables" : [ "Symbol('kappa')", "k", "n" ]
}
},
"Maple" : {
"translation" : "(kappa)^(2) = n*(n + 1)*(k)^(2)",
"translationInformation" : {
"subEquations" : [ "(kappa)^(2) = n*(n + 1)*(k)^(2)" ],
"freeVariables" : [ "k", "kappa", "n" ]
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 1,
"word" : 17
} ],
"includes" : [ "n", "k", "\\kappa" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "integer",
"score" : 0.7125985104912714
}, {
"definition" : "elliptic sine function",
"score" : 0.6859086196238077
}, {
"definition" : "case",
"score" : 0.6460746792928004
}, {
"definition" : "elliptic modulus",
"score" : 0.6460746792928004
}, {
"definition" : "meromorphic function",
"score" : 0.6460746792928004
}, {
"definition" : "solution",
"score" : 0.6460746792928004
}, {
"definition" : "whole complex plane",
"score" : 0.6460746792928004
}, {
"definition" : "important case",
"score" : 0.5988174995334326
} ]
}