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 P_n^{(\lambda)}(x;\phi)=\frac{(-1)^n}{n!\,w(x;\lambda,\phi)}\frac{d^n}{dx^n}w\left(x;\lambda+\tfrac12n,\phi\right),}

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

Semantic latex: \MeixnerPollaczekpolyP{\lambda}{n}@{x}{\phi} = \frac{(-1)^n}{n!w(x;\lambda,\phi)} \deriv [n]{ }{x} w(x ; \lambda + \tfrac12 n , \phi)

Confidence: 0.70083277109484

Mathematica

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_d395d2246fcea0afb78f7d64c6b341f9",
  "formula" : "P_n^{(\\lambda)}(x;\\phi)=\\frac{(-1)^n}{n!w(x;\\lambda,\\phi)}\\frac{d^n}{dx^n}w\\left(x;\\lambda+\\tfrac12n,\\phi\\right)",
  "semanticFormula" : "\\MeixnerPollaczekpolyP{\\lambda}{n}@{x}{\\phi} = \\frac{(-1)^n}{n!w(x;\\lambda,\\phi)} \\deriv [n]{ }{x} w(x ; \\lambda + \\tfrac12 n , \\phi)",
  "confidence" : 0.7008327710948399,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\MeixnerPollaczekpolyP [\\MeixnerPollaczekpolyP]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\MeixnerPollaczekpolyP [\\MeixnerPollaczekpolyP]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\MeixnerPollaczekpolyP [\\MeixnerPollaczekpolyP]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "w(x;\\lambda,\\varphi)", "P_{m}^{(\\lambda)}(x;\\varphi)", "P_n^{(\\lambda)}(x;\\phi)=\\frac{(-1)^n}{n!\\,w(x;\\lambda,\\phi)}\\frac{d^n}{dx^n}w\\left(x;\\lambda+\\tfrac12n,\\phi\\right)" ],
  "isPartOf" : [ "P_n^{(\\lambda)}(x;\\phi)=\\frac{(-1)^n}{n!\\,w(x;\\lambda,\\phi)}\\frac{d^n}{dx^n}w\\left(x;\\lambda+\\tfrac12n,\\phi\\right)" ],
  "definiens" : [ ]
}

Specify your own input