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 2\pi \log\left( \frac{G(1-z)}{G(1+z)} \right)= 2\pi z\log\left(\frac{\sin\pi z}{\pi} \right)+\operatorname{Cl}_2(2\pi z)\, . \, \Box }

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

Semantic latex: 2 \cpi \log(\frac{\BarnesG@{1 - z}}{\BarnesG@{1 + z}}) = 2 \cpi z \log(\frac{\sin \cpi z}{\cpi}) + \operatorname{Cl}_2(2 \cpi z) . \Box

Confidence: 0.68801523286653

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) The input LaTeX is invalid: The element Cl cannot be tagged as a function [Cl]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_ee592444b81a972201e5893fc0a3a1e8",
  "formula" : "2\\pi \\log\\left( \\frac{G(1-z)}{G(1+z)} \\right)= 2\\pi z\\log\\left(\\frac{\\sin\\pi z}{\\pi} \\right)+\\operatorname{Cl}_2(2\\pi z) .  \\Box",
  "semanticFormula" : "2 \\cpi \\log(\\frac{\\BarnesG@{1 - z}}{\\BarnesG@{1 + z}}) = 2 \\cpi z \\log(\\frac{\\sin \\cpi z}{\\cpi}) + \\operatorname{Cl}_2(2 \\cpi z) . \\Box",
  "confidence" : 0.688015232866532,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: The element Cl cannot be tagged as a function [Cl]"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\BarnesG [\\BarnesG]"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\BarnesG [\\BarnesG]"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "2\\pi \\log\\left( \\frac{G(1-z)}{G(1+z)} \\right)= 2\\pi z\\log\\left(\\frac{\\sin\\pi z}{\\pi} \\right) + \\operatorname{Cl}_2(2\\pi z)", "z", "\\, 2\\pi", "G", "2\\pi \\log\\left( \\frac{G(1-z)}{G(1+z)} \\right)= 2\\pi z\\log\\left(\\frac{\\sin\\pi z}{\\pi} \\right)+\\operatorname{Cl}_2(2\\pi z)\\, . \\, \\Box" ],
  "isPartOf" : [ "2\\pi \\log\\left( \\frac{G(1-z)}{G(1+z)} \\right)= 2\\pi z\\log\\left(\\frac{\\sin\\pi z}{\\pi} \\right)+\\operatorname{Cl}_2(2\\pi z)\\, . \\, \\Box" ],
  "definiens" : [ ]
}

Specify your own input