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 S=\sum_{i=1}^9 j_i. }
... is translated to the CAS output ...
Semantic latex: S=\sum_{i=1}^9 j_i
Confidence: 0
Mathematica
Translation: S == Sum[Subscript[j, i], {i, 1, 9}, GenerateConditions->None]
Information
Sub Equations
- S = Sum[Subscript[j, i], {i, 1, 9}, GenerateConditions->None]
Free variables
- S
- Subscript[j, i]
Symbol info
- You use a typical letter for a constant [the imaginary unit == the principal square root of -1].
We keep it like it is! But you should know that Mathematica uses I for this constant. If you want to translate it as a constant, use the corresponding DLMF macro \iunit
Tests
Symbolic
Numeric
SymPy
Translation: S == Sum(Symbol('{j}_{i}'), (i, 1, 9))
Information
Sub Equations
- S = Sum(Symbol('{j}_{i}'), (i, 1, 9))
Free variables
- S
- Symbol('{j}_{i}')
Symbol info
- You use a typical letter for a constant [the imaginary unit == the principal square root of -1].
We keep it like it is! But you should know that SymPy uses I for this constant. If you want to translate it as a constant, use the corresponding DLMF macro \iunit
Tests
Symbolic
Numeric
Maple
Translation: S = sum(j[i], i = 1..9)
Information
Sub Equations
- S = sum(j[i], i = 1..9)
Free variables
- S
- j[i]
Symbol info
- You use a typical letter for a constant [the imaginary unit == the principal square root of -1].
We keep it like it is! But you should know that Maple uses I for this constant. If you want to translate it as a constant, use the corresponding DLMF macro \iunit
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Description
- odd permutation of row
- phase factor
- column
Complete translation information:
{
"id" : "FORMULA_6ce693e29ca8ae99e917ecc3df6b204d",
"formula" : "S=\\sum_{i=1}^9 j_i",
"semanticFormula" : "S=\\sum_{i=1}^9 j_i",
"confidence" : 0.0,
"translations" : {
"Mathematica" : {
"translation" : "S == Sum[Subscript[j, i], {i, 1, 9}, GenerateConditions->None]",
"translationInformation" : {
"subEquations" : [ "S = Sum[Subscript[j, i], {i, 1, 9}, GenerateConditions->None]" ],
"freeVariables" : [ "S", "Subscript[j, i]" ],
"tokenTranslations" : {
"i" : "You use a typical letter for a constant [the imaginary unit == the principal square root of -1].\nWe keep it like it is! But you should know that Mathematica uses I for this constant.\nIf you want to translate it as a constant, use the corresponding DLMF macro \\iunit\n"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"SymPy" : {
"translation" : "S == Sum(Symbol('{j}_{i}'), (i, 1, 9))",
"translationInformation" : {
"subEquations" : [ "S = Sum(Symbol('{j}_{i}'), (i, 1, 9))" ],
"freeVariables" : [ "S", "Symbol('{j}_{i}')" ],
"tokenTranslations" : {
"i" : "You use a typical letter for a constant [the imaginary unit == the principal square root of -1].\nWe keep it like it is! But you should know that SymPy uses I for this constant.\nIf you want to translate it as a constant, use the corresponding DLMF macro \\iunit\n"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
},
"Maple" : {
"translation" : "S = sum(j[i], i = 1..9)",
"translationInformation" : {
"subEquations" : [ "S = sum(j[i], i = 1..9)" ],
"freeVariables" : [ "S", "j[i]" ],
"tokenTranslations" : {
"i" : "You use a typical letter for a constant [the imaginary unit == the principal square root of -1].\nWe keep it like it is! But you should know that Maple uses I for this constant.\nIf you want to translate it as a constant, use the corresponding DLMF macro \\iunit\n"
}
},
"numericResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"wasAborted" : false,
"crashed" : false,
"testCalculationsGroups" : [ ]
},
"symbolicResults" : {
"overallResult" : "SKIPPED",
"numberOfTests" : 0,
"numberOfFailedTests" : 0,
"numberOfSuccessfulTests" : 0,
"numberOfSkippedTests" : 0,
"numberOfErrorTests" : 0,
"crashed" : false,
"testCalculationsGroup" : [ ]
}
}
},
"positions" : [ {
"section" : 2,
"sentence" : 1,
"word" : 14
} ],
"includes" : [ "j" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "odd permutation of row",
"score" : 0.6859086196238077
}, {
"definition" : "phase factor",
"score" : 0.6859086196238077
}, {
"definition" : "column",
"score" : 0.5988174995334326
} ]
}