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 \int_0^z \log \Gamma(x)\,dx=\frac{z(1-z)}{2}+\frac{z}{2}\log 2\pi +z\log\Gamma(z) -\log G(1+z) }

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

Semantic latex: \int_0^z \log \EulerGamma@{x} \diff{x} = \frac{z(1-z)}{2} + \frac{z}{2} \log 2 \cpi + z \log \EulerGamma@{z} - \log \BarnesG@{1 + z}

Confidence: 0.65800408394759

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \EulerGamma [\EulerGamma]

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) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \EulerGamma [\EulerGamma]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_deb3bd795ac9394d4d547e7c848c8ab2",
  "formula" : "\\int_0^z \\log \\Gamma(x)dx=\\frac{z(1-z)}{2}+\\frac{z}{2}\\log 2\\pi +z\\log\\Gamma(z) -\\log G(1+z)",
  "semanticFormula" : "\\int_0^z \\log \\EulerGamma@{x} \\diff{x} = \\frac{z(1-z)}{2} + \\frac{z}{2} \\log 2 \\cpi + z \\log \\EulerGamma@{z} - \\log \\BarnesG@{1 + z}",
  "confidence" : 0.6580040839475927,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \\EulerGamma [\\EulerGamma]"
        }
      }
    },
    "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) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \\EulerGamma [\\EulerGamma]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "\\,\\Gamma(x)", "z\\log \\Gamma(z)-\\log G(1+z)", "\\int_0^z \\log \\Gamma(x)\\,dx=\\frac{z(1-z)}{2}+\\frac{z}{2}\\log 2\\pi +z\\log\\Gamma(z) -\\log G(1+z)", "z", "\\, 2\\pi", "G" ],
  "isPartOf" : [ "\\int_0^z \\log \\Gamma(x)\\,dx=\\frac{z(1-z)}{2}+\\frac{z}{2}\\log 2\\pi +z\\log\\Gamma(z) -\\log G(1+z)" ],
  "definiens" : [ ]
}

Specify your own input