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 \displaystyle h_n(x;q)=q^{\binom{n}{2}}{}_2\phi_1(q^{-n},x^{-1};0;q,-qx) = x^n{}_2\phi_0(q^{-n},q^{-n+1};;q^2,q^{2n-1}/x^2) = U_n^{(-1)}(x;q) }

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

Semantic latex: \discqHermitepolyhI{n}@{x}{q} = q^{\binom{n}{2}} \qgenhyperphi{2}{1}@{q^{-n} , x^{-1}}{0}{q}{- qx} = x^n{}_2 \phi_0(q^{-n} , q^{-n+1} ; ; q^2 , q^{2n-1} / x^2) = U_n^{(-1)}(x ; q)

Confidence: 0.55568587448586

Mathematica

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_93982ae6f179b4560427b311ff1afe8f",
  "formula" : "h_n(x;q)=q^{\\binom{n}{2}}{}_2\\phi_1(q^{-n},x^{-1};0;q,-qx) = x^n{}_2\\phi_0(q^{-n},q^{-n+1};;q^2,q^{2n-1}/x^2) = U_n^{(-1)}(x;q)",
  "semanticFormula" : "\\discqHermitepolyhI{n}@{x}{q} = q^{\\binom{n}{2}} \\qgenhyperphi{2}{1}@{q^{-n} , x^{-1}}{0}{q}{- qx} = x^n{}_2 \\phi_0(q^{-n} , q^{-n+1} ; ; q^2 , q^{2n-1} / x^2) = U_n^{(-1)}(x ; q)",
  "confidence" : 0.5556858744858614,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\discqHermitepolyhI [\\discqHermitepolyhI]"
        }
      },
      "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: \\discqHermitepolyhI [\\discqHermitepolyhI]"
        }
      },
      "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: \\discqHermitepolyhI [\\discqHermitepolyhI]"
        }
      },
      "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" : [ "\\hat{h}_{n}(x;q)", "\\displaystyle h_n(x;q)=q^{\\binom{n}{2}}{}_2\\phi_1(q^{-n},x^{-1};0;q,-qx) = x^n{}_2\\phi_0(q^{-n},q^{-n+1};;q^2,q^{2n-1}/x^2) = U_n^{(-1)}(x;q)", "q", "h_{n}(x;q)" ],
  "isPartOf" : [ "\\displaystyle h_n(x;q)=q^{\\binom{n}{2}}{}_2\\phi_1(q^{-n},x^{-1};0;q,-qx) = x^n{}_2\\phi_0(q^{-n},q^{-n+1};;q^2,q^{2n-1}/x^2) = U_n^{(-1)}(x;q)" ],
  "definiens" : [ ]
}

Specify your own input