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 \left[ \begin{matrix} n \\ k \end{matrix} \right] = s(n,k)}

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

Semantic latex: [\begin{matrix} n \\ k \end{matrix}] = \Stirlingnumbers@{n}{k}

Confidence: 0.89530287320794

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • Stirling number of the first kind
  • term of the Bernoulli polynomial

Complete translation information:

{
  "id" : "FORMULA_821a2a69eac5217559527bc3eb7b2f6b",
  "formula" : "\\left[ \\begin{matrix} n \\\\ k \\end{matrix} \\right] = s(n,k)",
  "semanticFormula" : "[\\begin{matrix} n \\\\ k \\end{matrix}] = \\Stirlingnumbers@{n}{k}",
  "confidence" : 0.8953028732079359,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 16,
    "sentence" : 1,
    "word" : 19
  } ],
  "includes" : [ "n" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "Stirling number of the first kind",
    "score" : 0.6859086196238077
  }, {
    "definition" : "term of the Bernoulli polynomial",
    "score" : 0.6460746792928004
  } ]
}

Specify your own input