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 \frac{z}{1-q^{1/2}} \;_{2}\phi_1 \left[\begin{matrix} q \; q^{1/2} \\ q^{3/2} \end{matrix}\;  ; q,z \right] = \frac{z}{1-q^{1/2}} + \frac{z^2}{1-q^{3/2}} + \frac{z^3}{1-q^{5/2}} + \ldots }

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

Semantic latex: \frac{z}{1-q^{1/2}}_{2} \phi_1 [\begin{matrix} q q^{1/2} \\ q^{3/2} \end{matrix} ; q , z] = \frac{z}{1-q^{1/2}} + \frac{z^2}{1-q^{3/2}} + \frac{z^3}{1-q^{5/2}} + \ldots

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_f379f0101ec71a00250b53139ac5d116",
  "formula" : "\\frac{z}{1-q^{1/2}} _{2}\\phi_1 \\left[\\begin{matrix} \nq  q^{1/2} \\\\ \nq^{3/2}  \\end{matrix}  ; q,z \\right] = \n\\frac{z}{1-q^{1/2}}\n+ \\frac{z^2}{1-q^{3/2}}\n+ \\frac{z^3}{1-q^{5/2}}\n+ \\ldots",
  "semanticFormula" : "\\frac{z}{1-q^{1/2}}_{2} \\phi_1 [\\begin{matrix} \nq  q^{1/2} \\\\ \nq^{3/2}  \\end{matrix} ; q , z] = \\frac{z}{1-q^{1/2}} + \\frac{z^2}{1-q^{3/2}} + \\frac{z^3}{1-q^{5/2}} + \\ldots",
  "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" : [ "z", "\\frac{z}{1-q^{1/2}} \\;_{2}\\phi_1 \\left[\\begin{matrix} q \\; q^{1/2} \\\\ q^{3/2}  \\end{matrix}\\;  ; q,z \\right] = \\frac{z}{1-q^{1/2}}+ \\frac{z^2}{1-q^{3/2}}+ \\frac{z^3}{1-q^{5/2}}+ \\ldots", "q^{n}", "q" ],
  "isPartOf" : [ "\\frac{z}{1-q^{1/2}} \\;_{2}\\phi_1 \\left[\\begin{matrix} q \\; q^{1/2} \\\\ q^{3/2}  \\end{matrix}\\;  ; q,z \\right] = \\frac{z}{1-q^{1/2}}+ \\frac{z^2}{1-q^{3/2}}+ \\frac{z^3}{1-q^{5/2}}+ \\ldots" ],
  "definiens" : [ ]
}

Specify your own input