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 \lim_{a \to \infty}Q_{n}(q^-{x};a;p,N|q)=K_{n}^{qtm}(q^-{x};p,N;q)}

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

Semantic latex: \lim_{a \to \infty}Q_{n}(q^-{x};a;p,N|q)=K_{n}^{qtm}(q^-{x};p,N;q)

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) Parenthesis mismatch in expression: Open and close parentheses does not match!

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) Parenthesis mismatch in expression: Open and close parentheses does not match!

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) Parenthesis mismatch in expression: Open and close parentheses does not match!

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • q-Hahn polynomial
  • Hahn polynomial
  • Quantum q-Krawtchouk polynomial
  • substitution
  • definition of q-Hahn polynomial
  • limit q

Complete translation information:

{
  "id" : "FORMULA_a336e6c8f9bdd3b4449e64f7a5b607ac",
  "formula" : "\\lim_{a \\to \\infty}Q_{n}(q^-{x};a;p,N|q)=K_{n}^{qtm}(q^-{x};p,N;q)",
  "semanticFormula" : "\\lim_{a \\to \\infty}Q_{n}(q^-{x};a;p,N|q)=K_{n}^{qtm}(q^-{x};p,N;q)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Parenthesis mismatch in expression: Open and close parentheses does not match!"
        }
      },
      "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) Parenthesis mismatch in expression: Open and close parentheses does not match!"
        }
      },
      "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) Parenthesis mismatch in expression: Open and close parentheses does not match!"
        }
      },
      "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" : [ {
    "section" : 2,
    "sentence" : 0,
    "word" : 7
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "q-Hahn polynomial",
    "score" : 0.8869384888466118
  }, {
    "definition" : "Hahn polynomial",
    "score" : 0.8601921133785482
  }, {
    "definition" : "Quantum q-Krawtchouk polynomial",
    "score" : 0.6687181434333315
  }, {
    "definition" : "substitution",
    "score" : 0.6288842031023242
  }, {
    "definition" : "definition of q-Hahn polynomial",
    "score" : 0.5816270233429564
  }, {
    "definition" : "limit q",
    "score" : 0.5816270233429564
  } ]
}

Specify your own input