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{(2\lambda)_n}{n!}e^{in\phi}{}_2F_1\left(\begin{array}{c} -n,~\lambda+ix\\ 2\lambda \end{array}; 1-e^{-2i\phi}\right)}

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

Semantic latex: \MeixnerPollaczekpolyP{\lambda}{n}@{x}{\phi} = \frac{(2\lambda)_n}{n!} \expe^{in\phi}{}_2 F_1(\begin{array}{column-style}- n , \lambda + \iunit x\end{array} ; 1 - \expe^{- 2 \iunit \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_9e6da276e845597a3d5fc8f926a33e2a",
  "formula" : "P_n^{(\\lambda)}(x;\\phi) = \\frac{(2\\lambda)_n}{n!}e^{in\\phi}{}_2F_1\\left(\\begin{array}{c} -n,~\\lambda+ix\\\\ 2\\lambda \\end{array}; 1-e^{-2i\\phi}\\right)",
  "semanticFormula" : "\\MeixnerPollaczekpolyP{\\lambda}{n}@{x}{\\phi} = \\frac{(2\\lambda)_n}{n!} \\expe^{in\\phi}{}_2 F_1(\\begin{array}{column-style}- n , \\lambda + \\iunit x\\end{array} ; 1 - \\expe^{- 2 \\iunit \\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)" ],
  "isPartOf" : [ "P_n^{(\\lambda)}(x;\\phi) = \\frac{(2\\lambda)_n}{n!}e^{in\\phi}{}_2F_1\\left(\\begin{array}{c} -n,\\lambda+ix\\\\ 2\\lambda \\end{array}; 1-e^{-2i\\phi}\\right)" ],
  "definiens" : [ ]
}

Specify your own input