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 \;_j\psi_k \left[\begin{matrix} a_1 & a_2 & \ldots & a_j \\ b_1 & b_2 & \ldots & b_k \end{matrix}  ; q,z \right] = \sum_{n=-\infty}^\infty \frac {(a_1, a_2, \ldots, a_j;q)_n} {(b_1, b_2, \ldots, b_k;q)_n} \left((-1)^nq^{n\choose 2}\right)^{k-j}z^n.}

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

Semantic latex: _j \psi_k [\begin{matrix} a_1 & a_2 & \ldots & a_j \\ b_1 & b_2 & \ldots & b_k \end{matrix} ; q , z] = \sum_{n=-\infty}^\infty \frac {(a_1, a_2, \ldots, a_j;q)_n} {(b_1, b_2, \ldots, b_k;q)_n}((- 1)^n q^{n\choose 2})^{k-j} z^n

Confidence: 0

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

Is part of

Complete translation information:

{
  "id" : "FORMULA_bb9f118dba56e32fb0eae418853c4501",
  "formula" : "_j\\psi_k \\left[\\begin{matrix} \na_1 & a_2 & \\ldots & a_j \\\\ \nb_1 & b_2 & \\ldots & b_k  \\end{matrix} \n; q,z \\right] = \\sum_{n=-\\infty}^\\infty  \n\\frac {(a_1, a_2, \\ldots, a_j;q)_n} {(b_1, b_2, \\ldots, b_k;q)_n}  \\left((-1)^n q^{n\\choose 2}\\right)^{k-j}z^n",
  "semanticFormula" : "_j \\psi_k [\\begin{matrix} \na_1 & a_2 & \\ldots & a_j \\\\ \nb_1 & b_2 & \\ldots & b_k  \\end{matrix} ; q , z] = \\sum_{n=-\\infty}^\\infty \\frac {(a_1, a_2, \\ldots, a_j;q)_n} {(b_1, b_2, \\ldots, b_k;q)_n}((- 1)^n q^{n\\choose 2})^{k-j} z^n",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
        }
      },
      "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) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
        }
      },
      "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) An unknown or missing element occurred: Reached unknown or not yet supported expression tag: matrix"
        }
      },
      "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" : [ "a", "b", "z", "\\psi", "x_{n}", "n", "q^{n}", "\\;_j\\psi_k \\left[\\begin{matrix} a_1 & a_2 & \\ldots & a_j \\\\ b_1 & b_2 & \\ldots & b_k  \\end{matrix} ; q,z \\right] = \\sum_{n=-\\infty}^\\infty  \\frac {(a_1, a_2, \\ldots, a_j;q)_n} {(b_1, b_2, \\ldots, b_k;q)_n}  \\left((-1)^nq^{n\\choose 2}\\right)^{k-j}z^n", "q" ],
  "isPartOf" : [ "\\;_j\\psi_k \\left[\\begin{matrix} a_1 & a_2 & \\ldots & a_j \\\\ b_1 & b_2 & \\ldots & b_k  \\end{matrix} ; q,z \\right] = \\sum_{n=-\\infty}^\\infty  \\frac {(a_1, a_2, \\ldots, a_j;q)_n} {(b_1, b_2, \\ldots, b_k;q)_n}  \\left((-1)^nq^{n\\choose 2}\\right)^{k-j}z^n" ],
  "definiens" : [ ]
}

Specify your own input