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 _3F_2([-n, \alpha+\beta+n+1, -x], [\alpha+1, -N], 1)}

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

Semantic latex: _3F_2([-n, \alpha+\beta+n+1, -x], [\alpha+1, -N], 1)

Confidence: 0

Mathematica

Translation: Subscript[$0, 3]*Subscript[F, 2][[- n , \[Alpha]+ \[Beta]+ n + 1 , - x],[\[Alpha]+ 1 , - N], 1]

Information

Sub Equations

  • Subscript[$0, 3]*Subscript[F, 2][[- n , \[Alpha]+ \[Beta]+ n + 1 , - x],[\[Alpha]+ 1 , - N], 1]

Free variables

  • N
  • \[Alpha]
  • \[Beta]
  • n
  • x

Symbol info

  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{$0}_{3}')*Symbol('{F}_{2}')([- n , Symbol('alpha')+ Symbol('beta')+ n + 1 , - x],[Symbol('alpha')+ 1 , - N], 1)

Information

Sub Equations

  • Symbol('{$0}_{3}')*Symbol('{F}_{2}')([- n , Symbol('alpha')+ Symbol('beta')+ n + 1 , - x],[Symbol('alpha')+ 1 , - N], 1)

Free variables

  • N
  • Symbol('alpha')
  • Symbol('beta')
  • n
  • x

Symbol info

  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: $0[3]*F[2]([- n , alpha + beta + n + 1 , - x],[alpha + 1 , - N], 1)

Information

Sub Equations

  • $0[3]*F[2]([- n , alpha + beta + n + 1 , - x],[alpha + 1 , - N], 1)

Free variables

  • N
  • alpha
  • beta
  • n
  • x

Symbol info

  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Dependency Graph Information

Description

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

Complete translation information:

{
  "id" : "FORMULA_037ffd975749408e4aa73f8d3f1c0b90",
  "formula" : "_3F_2([-n, \\alpha+\\beta+n+1, -x], [\\alpha+1, -N], 1)",
  "semanticFormula" : "_3F_2([-n, \\alpha+\\beta+n+1, -x], [\\alpha+1, -N], 1)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[$0, 3]*Subscript[F, 2][[- n , \\[Alpha]+ \\[Beta]+ n + 1 , - x],[\\[Alpha]+ 1 , - N], 1]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[$0, 3]*Subscript[F, 2][[- n , \\[Alpha]+ \\[Beta]+ n + 1 , - x],[\\[Alpha]+ 1 , - N], 1]" ],
        "freeVariables" : [ "N", "\\[Alpha]", "\\[Beta]", "n", "x" ],
        "tokenTranslations" : {
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
          "F" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : "Symbol('{$0}_{3}')*Symbol('{F}_{2}')([- n , Symbol('alpha')+ Symbol('beta')+ n + 1 , - x],[Symbol('alpha')+ 1 , - N], 1)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{$0}_{3}')*Symbol('{F}_{2}')([- n , Symbol('alpha')+ Symbol('beta')+ n + 1 , - x],[Symbol('alpha')+ 1 , - N], 1)" ],
        "freeVariables" : [ "N", "Symbol('alpha')", "Symbol('beta')", "n", "x" ],
        "tokenTranslations" : {
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
          "F" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : "$0[3]*F[2]([- n , alpha + beta + n + 1 , - x],[alpha + 1 , - N], 1)",
      "translationInformation" : {
        "subEquations" : [ "$0[3]*F[2]([- n , alpha + beta + n + 1 , - x],[alpha + 1 , - N], 1)" ],
        "freeVariables" : [ "N", "alpha", "beta", "n", "x" ],
        "tokenTranslations" : {
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
          "F" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : 35
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "q-Hahn polynomial",
    "score" : 0.7244849196070415
  }, {
    "definition" : "Hahn polynomial",
    "score" : 0.7141619147451186
  }, {
    "definition" : "limit q",
    "score" : 0.6954080343007951
  }, {
    "definition" : "substitution",
    "score" : 0.5816270233429564
  }, {
    "definition" : "definition of q-Hahn polynomial",
    "score" : 0.5329047619047619
  }, {
    "definition" : "Quantum q-Krawtchouk polynomial",
    "score" : 0.5329047619047619
  } ]
}

Specify your own input