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 \Gamma(x) \Gamma(y) = \int_{\R}f(u)\,du\cdot \int_{\R} g(u) \,du = \int_{\R}(f*g)(u)\,du =\Beta(x, y)\,\Gamma(x+y).}

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

Semantic latex: \EulerGamma@{x} \EulerGamma@{y} = \int_{\R} f(u) \diff{u} \cdot \int_{\R} g(u) \diff{u} = \int_{\R}(f * g)(u) \diff{u} = \Beta(x , y) \EulerGamma@{x + y}

Confidence: 0.61788109628084

Mathematica

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_cb67a364e368fcaab09625cb98772bc6",
  "formula" : "\\Gamma(x) \\Gamma(y) = \\int_{\\R}f(u)du\\cdot \\int_{\\R} g(u) du = \\int_{\\R}(f*g)(u)du =\\Beta(x, y)\\Gamma(x+y)",
  "semanticFormula" : "\\EulerGamma@{x} \\EulerGamma@{y} = \\int_{\\R} f(u) \\diff{u} \\cdot \\int_{\\R} g(u) \\diff{u} = \\int_{\\R}(f * g)(u) \\diff{u} = \\Beta(x , y) \\EulerGamma@{x + y}",
  "confidence" : 0.6178810962808362,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Unable to identify interval of INT"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\EulerGamma [\\EulerGamma]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Unable to identify interval of INT"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "x, y", "\\Gamma(x+y)", "y", "\\Gamma", "\\Gamma(x) \\Gamma(y) = \\int_{\\R}f(u)\\,du\\cdot \\int_{\\R} g(u) \\,du = \\int_{\\R}(f*g)(u)\\,du =\\Beta(x, y)\\,\\Gamma(x+y)", "\\Beta", "x" ],
  "isPartOf" : [ "\\Gamma(x) \\Gamma(y) = \\int_{\\R}f(u)\\,du\\cdot \\int_{\\R} g(u) \\,du = \\int_{\\R}(f*g)(u)\\,du =\\Beta(x, y)\\,\\Gamma(x+y)" ],
  "definiens" : [ ]
}

Specify your own input