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 L(s,\chi) = \sum_{n=1}^\infty \frac{\chi(n)}{n^s}.}

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

Semantic latex: \DirichletL@{s}{\Dirichletchar@{n}{k}} = \sum_{n=1}^\infty \frac{\Dirichletchar@@{n}{k}}{n^s}

Confidence: 0.62832184693483

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \DirichletL [\DirichletL]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \DirichletL [\DirichletL]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \DirichletL [\DirichletL]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • function of the form
  • Dirichlet L - series
  • mathematics
  • function
  • Dirichlet

Complete translation information:

{
  "id" : "FORMULA_110b3a66217e97116fbd198a0cb1ba8e",
  "formula" : "L(s,\\chi) = \\sum_{n=1}^\\infty \\frac{\\chi(n)}{n^s}",
  "semanticFormula" : "\\DirichletL@{s}{\\Dirichletchar@{n}{k}} = \\sum_{n=1}^\\infty \\frac{\\Dirichletchar@@{n}{k}}{n^s}",
  "confidence" : 0.628321846934831,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\DirichletL [\\DirichletL]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\DirichletL [\\DirichletL]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\DirichletL [\\DirichletL]"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 0,
    "sentence" : 0,
    "word" : 16
  } ],
  "includes" : [ "L", "\\chi", "s", "L(s, \\chi)", "L(s,\\chi)", "\\zeta(s,q)" ],
  "isPartOf" : [ "L(s,\\chi) = \\sum_{n=1}^\\infty \\frac {\\chi(n)}{n^s}= \\frac {1}{k^s} \\sum_{m=1}^k \\chi(m)\\; \\zeta \\left(s,\\frac{m}{k}\\right)" ],
  "definiens" : [ {
    "definition" : "function of the form",
    "score" : 0.722
  }, {
    "definition" : "Dirichlet L - series",
    "score" : 0.6859086196238077
  }, {
    "definition" : "mathematics",
    "score" : 0.6859086196238077
  }, {
    "definition" : "function",
    "score" : 0.3687889866820372
  }, {
    "definition" : "Dirichlet",
    "score" : 0.3022651554835661
  } ]
}

Specify your own input