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 \Beta(x,1-x) = \dfrac{\pi}{\sin(\pi x)}, \qquad x \not \in \mathbb{Z} }

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

Semantic latex: \Beta(x , 1 - x) = \dfrac{\cpi}{\sin(\cpi x)} , \qquad x \not \in \mathbb{Z}

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) An unknown or missing element occurred: Unknown MathTerm Tag: probability distribution for \Beta [\Beta]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) An unknown or missing element occurred: Unknown MathTerm Tag: probability distribution for \Beta [\Beta]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) An unknown or missing element occurred: Unknown MathTerm Tag: probability distribution for \Beta [\Beta]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • beta function
  • evaluation at particular point
  • example
  • last formula
  • power function
  • term of a convolution

Complete translation information:

{
  "id" : "FORMULA_aaa5e5c572120e6b9e801631aa948868",
  "formula" : "\\Beta(x,1-x) = \\dfrac{\\pi}{\\sin(\\pi x)}, \\qquad x \\not \\in \\mathbb{Z}",
  "semanticFormula" : "\\Beta(x , 1 - x) = \\dfrac{\\cpi}{\\sin(\\cpi x)} , \\qquad x \\not \\in \\mathbb{Z}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Unknown MathTerm Tag: probability distribution for \\Beta [\\Beta]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) An unknown or missing element occurred: Unknown MathTerm Tag: probability distribution for \\Beta [\\Beta]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) An unknown or missing element occurred: Unknown MathTerm Tag: probability distribution for \\Beta [\\Beta]"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 5,
    "sentence" : 4,
    "word" : 35
  } ],
  "includes" : [ "x, y", "\\Beta", "x" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "beta function",
    "score" : 0.6859086196238077
  }, {
    "definition" : "evaluation at particular point",
    "score" : 0.6859086196238077
  }, {
    "definition" : "example",
    "score" : 0.6859086196238077
  }, {
    "definition" : "last formula",
    "score" : 0.6859086196238077
  }, {
    "definition" : "power function",
    "score" : 0.6859086196238077
  }, {
    "definition" : "term of a convolution",
    "score" : 0.6859086196238077
  } ]
}

Specify your own input