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_n(ix;q^{-1}) = i^n\hat h_n(x;q)}

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

Semantic latex: \discqHermitepolyhI{n}@{\iunit x}{q^{-1}} = \iunit^n \discqHermitepolyhI{}@{}{}

Confidence: 0.84293097654618

Mathematica

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • Hermite polynomial
  • term of basic hypergeometric function
  • Al-Salam -- Carlitz polynomial

Complete translation information:

{
  "id" : "FORMULA_b9974285610b7a82c94b6a504726df8c",
  "formula" : "h_n(ix;q^{-1}) = i^n\\hat h_n(x;q)",
  "semanticFormula" : "\\discqHermitepolyhI{n}@{\\iunit x}{q^{-1}} = \\iunit^n \\discqHermitepolyhI{}@{}{}",
  "confidence" : 0.8429309765461831,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\discqHermitepolyhI [\\discqHermitepolyhI]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\discqHermitepolyhI [\\discqHermitepolyhI]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\discqHermitepolyhI [\\discqHermitepolyhI]"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 1,
    "sentence" : 0,
    "word" : 27
  } ],
  "includes" : [ "\\hat{h}_{n}(x;q)", "q", "h_{n}(x;q)" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "Hermite polynomial",
    "score" : 0.6460746792928004
  }, {
    "definition" : "term of basic hypergeometric function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "Al-Salam -- Carlitz polynomial",
    "score" : 0.5500952380952381
  } ]
}

Specify your own input