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 y(t) = a \times \operatorname{si}(t)}
... is translated to the CAS output ...
Semantic latex: y(t) = a \times \operatorname{si}(t)
Confidence: 0
Mathematica
Translation: y[t] == a * si[t]
Information
Sub Equations
- y[t] = a * si[t]
Free variables
- a
- t
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- was translated to: *
- Was interpreted as a function call because of a leading \operatorname.
Tests
Symbolic
Test expression: (y*(t))-(a * si[t])
ERROR:
{
"result": "ERROR",
"testTitle": "Simple",
"testExpression": null,
"resultExpression": null,
"wasAborted": false,
"conditionallySuccessful": false
}
Numeric
SymPy
Translation: y(t) == a * si(t)
Information
Sub Equations
- y(t) = a * si(t)
Free variables
- a
- t
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- was translated to: *
- Was interpreted as a function call because of a leading \operatorname.
Tests
Symbolic
Numeric
Maple
Translation: y(t) = a * si(t)
Information
Sub Equations
- y(t) = a * si(t)
Free variables
- a
- t
Symbol info
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
- was translated to: *
- Was interpreted as a function call because of a leading \operatorname.
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- spiral
- Euler spiral
- Fresnel
Complete translation information:
{
"id" : "FORMULA_2e6b9acda749e44693971ee93ba0fffa",
"formula" : "y(t) = a \\times \\operatorname{si}(t)",
"semanticFormula" : "y(t) = a \\times \\operatorname{si}(t)",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "y[t] == a * si[t]",
"translationInformation" : {
"subEquations" : [ "y[t] = a * si[t]" ],
"freeVariables" : [ "a", "t" ],
"tokenTranslations" : {
"y" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\times" : "was translated to: *",
"si" : "Was interpreted as a function call because of a leading \\operatorname."
}
},
"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" : "y*(t)",
"rhs" : "a * si[t]",
"testExpression" : "(y*(t))-(a * si[t])",
"testCalculations" : [ {
"result" : "ERROR",
"testTitle" : "Simple",
"testExpression" : null,
"resultExpression" : null,
"wasAborted" : false,
"conditionallySuccessful" : false
} ]
} ]
}
},
"SymPy" : {
"translation" : "y(t) == a * si(t)",
"translationInformation" : {
"subEquations" : [ "y(t) = a * si(t)" ],
"freeVariables" : [ "a", "t" ],
"tokenTranslations" : {
"y" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\times" : "was translated to: *",
"si" : "Was interpreted as a function call because of a leading \\operatorname."
}
}
},
"Maple" : {
"translation" : "y(t) = a * si(t)",
"translationInformation" : {
"subEquations" : [ "y(t) = a * si(t)" ],
"freeVariables" : [ "a", "t" ],
"tokenTranslations" : {
"y" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
"\\times" : "was translated to: *",
"si" : "Was interpreted as a function call because of a leading \\operatorname."
}
}
}
},
"positions" : [ {
"section" : 6,
"sentence" : 1,
"word" : 1
} ],
"includes" : [ "si(x)" ],
"isPartOf" : [ "x(t) = a \\times \\operatorname{ci}(t)" ],
"definiens" : [ {
"definition" : "spiral",
"score" : 0.722
}, {
"definition" : "Euler spiral",
"score" : 0.6859086196238077
}, {
"definition" : "Fresnel",
"score" : 0.6859086196238077
} ]
}