LaTeX to CAS translator
Jump to navigation
Jump to search
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 \psi(x) := \sum_{n=1}^\infty e^{-n^2 \pi x}}
... is translated to the CAS output ...
Semantic latex: \digamma@{x} : = \sum_{n=1}^\infty \expe^{- n^2 \cpi x}
Confidence: 0.71356142877931
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) An unknown or missing element occurred: Unknown MathTerm Tag: colon for : [:]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \digamma [\digamma]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) An unknown or missing element occurred: Unknown MathTerm Tag: colon for : [:]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
- Failed to parse (syntax error): {\displaystyle =1}^}
Description
- n
- TeX Source
- Formula
- Gold ID
- infty e
- link
- pi
- psi
- sum
- x
Complete translation information:
{
"id" : "FORMULA_bd88ec58aa42c7a59bc2f4ff458a54cf",
"formula" : "\\psi(x) := \\sum_{n=1}^\\infty e^{-n^2 \\pi x}",
"semanticFormula" : "\\digamma@{x} : = \\sum_{n=1}^\\infty \\expe^{- n^2 \\cpi x}",
"confidence" : 0.7135614287793112,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Unknown MathTerm Tag: colon for : [:]"
}
}
},
"SymPy" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\digamma [\\digamma]"
}
}
},
"Maple" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) An unknown or missing element occurred: Unknown MathTerm Tag: colon for : [:]"
}
}
}
},
"positions" : [ {
"section" : 1,
"sentence" : 0,
"word" : 8
} ],
"includes" : [ "=1}^", "^2", "= 1", "=1" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "n",
"score" : 0.7936682821800771
}, {
"definition" : "TeX Source",
"score" : 0.722
}, {
"definition" : "Formula",
"score" : 0.6954080343007951
}, {
"definition" : "Gold ID",
"score" : 0.6687181434333315
}, {
"definition" : "infty e",
"score" : 0.6288842031023242
}, {
"definition" : "link",
"score" : 0.6288842031023242
}, {
"definition" : "pi",
"score" : 0.6288842031023242
}, {
"definition" : "psi",
"score" : 0.6288842031023242
}, {
"definition" : "sum",
"score" : 0.6288842031023242
}, {
"definition" : "x",
"score" : 0.6288842031023242
} ]
}