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 \pi^{1/2} H(y) = \operatorname{Im} \int_0^\infty dk \, \exp[-k^2/4+iky] }

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

Semantic latex: \cpi^{1/2} \HeavisideH@{y} = \imagpart \int_0^\infty \diff{k} \exp [- k^2 / 4 + \iunit ky]

Confidence: 0.52589992733497

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) The input LaTeX is invalid: Limited expression in the end are illegal!

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: Limited expression in the end are illegal!

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_0d0a4a6e3754c72ce3ae7dd5133d1fb4",
  "formula" : "\\pi^{1/2} H(y) = \\operatorname{Im} \\int_0^\\infty dk  \\exp[-k^2/4+iky]",
  "semanticFormula" : "\\cpi^{1/2} \\HeavisideH@{y} = \\imagpart \\int_0^\\infty \\diff{k} \\exp [- k^2 / 4 + \\iunit ky]",
  "confidence" : 0.5258999273349684,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: Limited expression in the end are illegal!"
        }
      }
    },
    "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: Limited expression in the end are illegal!"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "H(y)", "y", "k", "\\pi^{1/2}", "\\pi^{1/2} H(y) = \\operatorname{Im} \\int_0^\\infty dk \\, \\exp[-k^2/4+iky]" ],
  "isPartOf" : [ "\\pi^{1/2} H(y) = \\operatorname{Im} \\int_0^\\infty dk \\, \\exp[-k^2/4+iky]" ],
  "definiens" : [ ]
}

Specify your own input