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

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

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

Confidence: 0.72011607141622

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_1e663a4447888036121f6b5c740182f2",
  "formula" : "(n+1)P_{n+1}^{(\\lambda)}(x;\\phi)=2(x\\sin\\phi + (n+\\lambda)\\cos\\phi)P_n^{(\\lambda)}(x;\\phi)-(n+2\\lambda-1)P_{n-1}(x;\\phi)",
  "semanticFormula" : "(n + 1) \\MeixnerPollaczekpolyP{\\lambda}{n+1}@{x}{\\phi} = 2(x \\sin \\phi +(n + \\lambda) \\cos \\phi) \\MeixnerPollaczekpolyP{\\lambda}{n}@{x}{\\phi} -(n + 2 \\lambda - 1) P_{n-1}(x ; \\phi)",
  "confidence" : 0.7201160714162153,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\MeixnerPollaczekpolyP [\\MeixnerPollaczekpolyP]"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\MeixnerPollaczekpolyP [\\MeixnerPollaczekpolyP]"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\MeixnerPollaczekpolyP [\\MeixnerPollaczekpolyP]"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "P_{m}^{(\\lambda)}(x;\\varphi)", "(n+1)P_{n+1}^{(\\lambda)}(x;\\phi)=2\\bigl(x\\sin\\phi + (n+\\lambda)\\cos\\phi\\bigr)P_n^{(\\lambda)}(x;\\phi)-(n+2\\lambda-1)P_{n-1}(x;\\phi)" ],
  "isPartOf" : [ "(n+1)P_{n+1}^{(\\lambda)}(x;\\phi)=2\\bigl(x\\sin\\phi + (n+\\lambda)\\cos\\phi\\bigr)P_n^{(\\lambda)}(x;\\phi)-(n+2\\lambda-1)P_{n-1}(x;\\phi)" ],
  "definiens" : [ ]
}

Specify your own input