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