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_2^{(\lambda)}(x;\phi)=x^2+\lambda^2+(\lambda^2+\lambda-x^2)\cos(2\phi)+(1+2\lambda)x\sin(2\phi).}

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

Semantic latex: \MeixnerPollaczekpolyP{\lambda}{2}@{x}{\phi} = x^2 + \lambda^2 +(\lambda^2 + \lambda - x^2) \cos(2 \phi) +(1 + 2 \lambda) x \sin(2 \phi)

Confidence: 0.89530287320794

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

Description

  • first few Meixner -- Pollaczek polynomial

Complete translation information:

{
  "id" : "FORMULA_1a24ee38019ae06d585f0e2ad3198fc2",
  "formula" : "P_2^{(\\lambda)}(x;\\phi)=x^2+\\lambda^2+(\\lambda^2+\\lambda-x^2)\\cos(2\\phi)+(1+2\\lambda)x\\sin(2\\phi)",
  "semanticFormula" : "\\MeixnerPollaczekpolyP{\\lambda}{2}@{x}{\\phi} = x^2 + \\lambda^2 +(\\lambda^2 + \\lambda - x^2) \\cos(2 \\phi) +(1 + 2 \\lambda) x \\sin(2 \\phi)",
  "confidence" : 0.8953028732079359,
  "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" : [ {
    "section" : 1,
    "sentence" : 0,
    "word" : 10
  } ],
  "includes" : [ "P_{m}^{(\\lambda)}(x;\\varphi)" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "first few Meixner -- Pollaczek polynomial",
    "score" : 0.6859086196238077
  } ]
}

Specify your own input