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 \sum_{n=1}^\infty\frac{1}{n^s} = \prod_{p \text{ prime}} \frac{1}{1-p^{-s}},}

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

Semantic latex: \sum_{n=1}^\infty\frac{1}{n^s} = \prod_{p \text{ prime}} \frac{1}{1-p^{-s}}

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) No translation possible for given token: Unable to identify interval of PROD

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Unable to identify interval of PROD

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) No translation possible for given token: Unable to identify interval of PROD

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • prime number
  • proof of Euler 's identity
  • connection between the zeta function
  • definition
  • Euler
  • Euler product
  • infinite product on the right hand side
  • left hand side
  • side of the Euler product formula
  • such expression

Complete translation information:

{
  "id" : "FORMULA_2894791f6a85352ac2f9728370b034f0",
  "formula" : "\\sum_{n=1}^\\infty\\frac{1}{n^s} = \\prod_{p \\text{ prime}} \\frac{1}{1-p^{-s}}",
  "semanticFormula" : "\\sum_{n=1}^\\infty\\frac{1}{n^s} = \\prod_{p \\text{ prime}} \\frac{1}{1-p^{-s}}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Unable to identify interval of PROD"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Unable to identify interval of PROD"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Unable to identify interval of PROD"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 3,
    "sentence" : 0,
    "word" : 20
  } ],
  "includes" : [ "1", "s", "p", "n" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "prime number",
    "score" : 0.8426021531523621
  }, {
    "definition" : "proof of Euler 's identity",
    "score" : 0.722
  }, {
    "definition" : "connection between the zeta function",
    "score" : 0.6687181434333315
  }, {
    "definition" : "definition",
    "score" : 0.6687181434333315
  }, {
    "definition" : "Euler",
    "score" : 0.6687181434333315
  }, {
    "definition" : "Euler product",
    "score" : 0.6687181434333315
  }, {
    "definition" : "infinite product on the right hand side",
    "score" : 0.6687181434333315
  }, {
    "definition" : "left hand side",
    "score" : 0.6687181434333315
  }, {
    "definition" : "side of the Euler product formula",
    "score" : 0.6687181434333315
  }, {
    "definition" : "such expression",
    "score" : 0.6687181434333315
  } ]
}

Specify your own input