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 f(z)=\frac{1}{\Beta(x,y)}}

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

Semantic latex: \EulerPhi@{z} = \frac{1}{\Beta(x,y)}

Confidence: 0.89530287320794

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) No translation possible for given token: Cannot extract information from feature set: \EulerPhi [\EulerPhi]

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

  • function about the form
  • reciprocal beta function
  • definite integral of trigonometric function
  • integral representation
  • product
  • power
  • multiple-angle

Complete translation information:

{
  "id" : "FORMULA_5f59825d73d63a9990498edca7222261",
  "formula" : "f(z)=\\frac{1}{\\Beta(x,y)}",
  "semanticFormula" : "\\EulerPhi@{z} = \\frac{1}{\\Beta(x,y)}",
  "confidence" : 0.8953028732079359,
  "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) No translation possible for given token: Cannot extract information from feature set: \\EulerPhi [\\EulerPhi]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) An unknown or missing element occurred: Unknown MathTerm Tag: probability distribution for \\Beta [\\Beta]"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 6,
    "sentence" : 0,
    "word" : 12
  } ],
  "includes" : [ "x, y", "\\Beta", "y", "x" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "function about the form",
    "score" : 0.722
  }, {
    "definition" : "reciprocal beta function",
    "score" : 0.6859086196238077
  }, {
    "definition" : "definite integral of trigonometric function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "integral representation",
    "score" : 0.6460746792928004
  }, {
    "definition" : "product",
    "score" : 0.6460746792928004
  }, {
    "definition" : "power",
    "score" : 0.5988174995334326
  }, {
    "definition" : "multiple-angle",
    "score" : 0.5500952380952381
  } ]
}

Specify your own input