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 \scriptstyle{\mathfrak K}(w,x,s) = \sum_{k=0}^\infty {e^{2k\pi ix} \over (w+k)^s}}

... is translated to the CAS output ...

Semantic latex: \scriptstyle \mathfrak K}(w , x , s) = \sum_{k=0}^\infty{\expe^{2 k \cpi \iunit x} \over(w + k)^s}

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \scriptstyle [\scriptstyle]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \scriptstyle [\scriptstyle]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \scriptstyle [\scriptstyle]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Complete translation information:

{
  "id" : "FORMULA_bb859a4d37bb682ebc6141fa2ff75080",
  "formula" : "\\scriptstyle{\\mathfrak K}(w,x,s) = \\sum_{k=0}^\\infty {e^{2k\\pi ix} \\over (w+k)^s}",
  "semanticFormula" : "\\scriptstyle \\mathfrak K}(w , x , s) = \\sum_{k=0}^\\infty{\\expe^{2 k \\cpi \\iunit x} \\over(w + k)^s}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\scriptstyle [\\scriptstyle]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \\scriptstyle [\\scriptstyle]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\scriptstyle [\\scriptstyle]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "L(\\lambda, \\alpha, s)", "s" ],
  "isPartOf" : [ ],
  "definiens" : [ ]
}

Specify your own input