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 H(y) = \pi^{-1} \operatorname{P.V.} \int_{-\infty}^\infty \frac{e^{-x^2}}{y-x} \, dx }

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

Semantic latex: \HeavisideH@{y} = \cpi^{-1} \operatorname{P.V.} \int_{-\infty}^\infty \frac{\expe^{-x^2}}{y-x} \diff{x}

Confidence: 0.52589992733497

Mathematica

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_dcb9176b626e5c485d71c5b83ce128b8",
  "formula" : "H(y) = \\pi^{-1} \\operatorname{P.V.} \\int_{-\\infty}^\\infty \\frac{e^{-x^2}}{y-x}  dx",
  "semanticFormula" : "\\HeavisideH@{y} = \\cpi^{-1} \\operatorname{P.V.} \\int_{-\\infty}^\\infty \\frac{\\expe^{-x^2}}{y-x} \\diff{x}",
  "confidence" : 0.5258999273349684,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: The element   cannot be tagged as a function [ ]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\HeavisideH [\\HeavisideH]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) The input LaTeX is invalid: The element   cannot be tagged as a function [ ]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "H(y)", "H(y) = \\pi^{-1} \\operatorname{P.V.} \\int_{-\\infty}^\\infty \\frac{e^{-x^2}}{y-x} \\, dx", "y", "x" ],
  "isPartOf" : [ "H(y) = \\pi^{-1} \\operatorname{P.V.} \\int_{-\\infty}^\\infty \\frac{e^{-x^2}}{y-x} \\, dx" ],
  "definiens" : [ ]
}

Specify your own input