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 n}

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

Semantic latex: n

Confidence: 0

Mathematica

Translation: n

Information

Sub Equations

  • n

Free variables

  • n

Tests

Symbolic
Numeric

SymPy

Translation: n

Information

Sub Equations

  • n

Free variables

  • n

Tests

Symbolic
Numeric

Maple

Translation: n

Information

Sub Equations

  • n

Free variables

  • n

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • increase
  • value
  • Dual Hahn Polynomial
  • orthogonality condition
  • result
  • discrete polynomial
  • numerical stability
  • polynomial
  • Hahn polynomial
  • parameter
  • uniform lattice
  • non-uniform lattice

Complete translation information:

{
  "id" : "FORMULA_7b8b965ad4bca0e41ab51de7b31363a1",
  "formula" : "n",
  "semanticFormula" : "n",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "n",
      "translationInformation" : {
        "subEquations" : [ "n" ],
        "freeVariables" : [ "n" ]
      },
      "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" : "n",
      "translationInformation" : {
        "subEquations" : [ "n" ],
        "freeVariables" : [ "n" ]
      },
      "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" : "n",
      "translationInformation" : {
        "subEquations" : [ "n" ],
        "freeVariables" : [ "n" ]
      },
      "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" : 4
  } ],
  "includes" : [ ],
  "isPartOf" : [ "d_n^2=\\frac{\\Gamma(a+c+n+a)}{n!(b-a-n-1)!\\Gamma(b-c-n)}", "\\sum^{b-1}_{s=a}w_n^{(c)}(s,a,b)w_m^{(c)}(s,a,b)\\rho(s)[\\Delta x(s-\\frac{1}{2}) ]=\\delta_{nm}d_n^2", "n=0,1,...,N-1", "n,m=0,1,...,N-1", "w_n^{(c)} (s,a,b)=\\frac{(a-b+1)_n(a+c+1)_n}{n!} {}_3F_2(-n,a-s,a+s+1;a-b+a,a+c+1;1)", "\\hat w_n^{(c)}(s,a,b)=w_n^{(c)}(s,a,b)\\sqrt{\\frac{\\rho(s)}{d_n^2}[\\Delta x(s-\\frac{1}{2})]}", "\\sum^{b-1}_{s=a}\\hat w_n^{(c)}(s,a,b)\\hat w_m^{(c)}(s,a,b)=\\delta_{m,n}", "h_n(x,N;\\alpha,\\beta)" ],
  "definiens" : [ {
    "definition" : "increase",
    "score" : 0.8869384888466118
  }, {
    "definition" : "value",
    "score" : 0.8692920440198258
  }, {
    "definition" : "Dual Hahn Polynomial",
    "score" : 0.8045359953760726
  }, {
    "definition" : "orthogonality condition",
    "score" : 0.7204208738457457
  }, {
    "definition" : "result",
    "score" : 0.6033992232315736
  }, {
    "definition" : "discrete polynomial",
    "score" : 0.5816270233429564
  }, {
    "definition" : "numerical stability",
    "score" : 0.5561420434722057
  }, {
    "definition" : "polynomial",
    "score" : 0.5074197820340112
  }, {
    "definition" : "Hahn polynomial",
    "score" : 0.451864458892933
  }, {
    "definition" : "parameter",
    "score" : 0.4249823551031411
  }, {
    "definition" : "uniform lattice",
    "score" : 0.3853406276944619
  }, {
    "definition" : "non-uniform lattice",
    "score" : 0.3352076534936312
  } ]
}

Specify your own input