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

  • degree
  • weight
  • orthogonal polynomial of degree
  • node
  • point
  • polynomial of degree
  • quadrature rule
  • different point
  • maximal degree
  • nontrivial polynomial of degree
  • number of integration point
  • rule
  • point Gaussian quadrature rule
  • exact result for polynomial
  • Carl Friedrich Gauss
  • suitable choice of the node
  • common domain of integration
  • polynomial
  • yield
  • operation
  • coefficient
  • i.e.
  • order
  • derivative
  • remainder
  • Orthogonal polynomial
  • integrand
  • term
  • term of the orthogonal polynomial
  • zero
  • scalar product
  • integral
  • formula
  • 3-term recurrence relation
  • error estimate
  • point rule
  • relation
  • Gauss-Jacobi quadrature rule
  • root
  • Gaussian quadrature
  • asymptotic formula
  • continuous derivative
  • Eq
  • idea
  • integral expression for the weight
  • L'Hôpital 's rule
  • limit
  • Lobatto quadrature of function
  • low degree
  • lower degree
  • Mathematica source code
  • proof
  • property
  • quotient
  • root of the polynomial
  • similar matrix
  • st
  • way
  • accurate approximation to the integral
  • Legendre polynomial
  • Abscissas
  • choice of node
  • eigenvalue of this tridiagonal matrix
  • equation
  • expression in equation
  • Golub-Welsch algorithm
  • high precision
  • i.e. monic
  • important special case
  • infinity
  • matrix form
  • node for the Gaussian quadrature
  • recurrence relation
  • side
  • so-called Jacobi matrix
  • standard basis vector
  • term in the bracket
  • three-term recurrence relation
  • value
  • weight function
  • simplest integration problem
  • Gauss node
  • approximation
  • dash
  • decimal place
  • exactness
  • exactness for polynomial
  • gauss-quadrature
  • Gaussian quadrature formula
  • integral expression
  • interval
  • Legendre-Gaussian quadrature weight
  • Newton 's method
  • note
  • nth degree
  • standard Legendre polynomial of m-th degree
  • three-term recurrence for evaluation
  • abscissa
  • element
  • extension of Gauss quadrature rule
  • practice
  • right hand side
  • same eigenvalue
  • symmetric tridiagonal matrix
  • Gauss -- Kronrod rule
  • Lagrange interpolation one
  • Stoer
  • actual error
  • Bulirsch remark that this error estimate

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" : 0,
    "sentence" : 2,
    "word" : 1
  }, {
    "section" : 1,
    "sentence" : 1,
    "word" : 2
  }, {
    "section" : 2,
    "sentence" : 2,
    "word" : 1
  }, {
    "section" : 4,
    "sentence" : 0,
    "word" : 8
  }, {
    "section" : 4,
    "sentence" : 1,
    "word" : 4
  }, {
    "section" : 4,
    "sentence" : 1,
    "word" : 17
  }, {
    "section" : 4,
    "sentence" : 3,
    "word" : 12
  }, {
    "section" : 4,
    "sentence" : 5,
    "word" : 31
  }, {
    "section" : 4,
    "sentence" : 8,
    "word" : 18
  }, {
    "section" : 5,
    "sentence" : 1,
    "word" : 25
  }, {
    "section" : 5,
    "sentence" : 1,
    "word" : 36
  }, {
    "section" : 7,
    "sentence" : 1,
    "word" : 32
  }, {
    "section" : 8,
    "sentence" : 0,
    "word" : 38
  }, {
    "section" : 9,
    "sentence" : 0,
    "word" : 17
  }, {
    "section" : 9,
    "sentence" : 0,
    "word" : 45
  }, {
    "section" : 10,
    "sentence" : 1,
    "word" : 33
  }, {
    "section" : 11,
    "sentence" : 1,
    "word" : 19
  }, {
    "section" : 12,
    "sentence" : 2,
    "word" : 11
  } ],
  "includes" : [ ],
  "isPartOf" : [ "2n - 1", "i = 1, ..., n", "\\int_{-1}^1 f(x)\\,dx \\approx \\sum_{i=1}^n w_i f(x_i)", "\\int_{-1}^1 f(x)\\,dx = \\int_{-1}^1 \\left(1 - x\\right)^\\alpha \\left(1 + x\\right)^\\beta g(x)\\,dx \\approx \\sum_{i=1}^n w_i' g\\left(x_i'\\right)", "P_{n}(x)", "P_{n}(1) = 1", "P_{n}", "w_i = \\frac{2}{\\left( 1 - x_i^2 \\right) \\left[P'_n(x_i)\\right]^2}", "\\int_a^b f(x)\\,dx \\approx \\frac{b-a}{2} \\sum_{i=1}^n w_i f\\left(\\frac{b-a}{2}\\xi_i + \\frac{a+b}{2}\\right)", "p_{n}", "\\int_a^b \\omega(x) \\, x^k p_n(x) \\, dx = 0, \\quad \\text{for all } k = 0, 1, \\ldots, n - 1", "p_n(x)", "\\sum_{i=1}^n w_i h(x_i) = \\sum_{i=1}^n w_i r(x_i)", "w_{i} = \\frac{a_{n}}{a_{n-1}}\\frac{\\int_{a}^{b}\\omega(x)p_{n-1}\\left(x\\right)^{2}dx}{p'_{n}(x_{i})p_{n-1}(x_{i})}", "r(x) = \\sum_{i=1}^{n}r(x_{i})\\prod_{\\begin{smallmatrix}1\\leq j\\leq n\\\\j\\neq i\\end{smallmatrix}}\\frac{x-x_{j}}{x_{i}-x_{j}}", "\\int_{a}^{b}\\omega(x)r(x)dx= \\sum_{i=1}^{n}r(x_{i})\\int_{a}^{b}\\omega(x)\\prod_{\\begin{smallmatrix}1\\leq j\\leq n\\\\j\\neq i\\end{smallmatrix}}\\frac{x-x_{j}}{x_{i}-x_{j}}dx", "w_{i} = \\int_{a}^{b}\\omega(x)\\prod_{\\begin{smallmatrix}1\\leq j\\leq n\\\\j\\neq i\\end{smallmatrix}}\\frac{x-x_{j}}{x_{i}-x_{j}}dx", "p_{n}(x)", "p_{n-1}(x)", "\\prod_{\\begin{smallmatrix}1\\leq j\\leq n\\\\j\\neq i\\end{smallmatrix}}\\left(x-x_{j}\\right) = \\frac{\\prod_{1\\leq j\\leq n} \\left(x - x_{j}\\right)}{x-x_{i}} = \\frac{p_{n}(x)}{a_{n}\\left(x-x_{i}\\right)}", "a_{n}", "x^n", "\\prod_{\\begin{smallmatrix}1\\leq j\\leq n\\\\j\\neq i\\end{smallmatrix}}\\left(x_{i}-x_{j}\\right) = \\frac{p'_{n}(x_{i})}{a_{n}}", "w_{i} = \\frac{1}{p'_{n}(x_{i})}\\int_{a}^{b}\\omega(x)\\frac{p_{n}(x)}{x-x_{i}}dx", "\\int_a^b\\omega(x)\\frac{x^kp_n(x)}{x-x_i}dx= x_i^k\\int_{a}^{b}\\omega(x)\\frac{p_n(x)}{x-x_i}dx", "k \\leq n", "\\int_{a}^{b}\\omega(x)\\frac{p_{n}(x)}{x-x_{i}}dx=\\frac{1}{q(x_{i})}\\int_{a}^{b}\\omega(x)\\frac{q(x)p_{n}(x)}{x-x_{i}}dx", "q(x) = p_{n-1}(x)", "\\frac{p_{n}(x)}{x-x_{i}}", "n - 1", "\\frac{p_{n}(x)}{x-x_{i}} = a_{n}x^{n-1} + s(x)", "n - 2", "\\int_{a}^{b}\\omega(x)\\frac{p_{n}(x)}{x-x_{i}}dx=\\frac{a_{n}}{p_{n-1}(x_{i})}\\int_{a}^{b}\\omega(x)p_{n-1}(x)x^{n-1}dx", "x^{n-1} = \\left(x^{n-1} - \\frac{p_{n-1}(x)}{a_{n-1}}\\right) + \\frac{p_{n-1}(x)}{a_{n-1}}", "\\int_{a}^{b}\\omega(x)\\frac{p_{n}(x)}{x-x_{i}}dx=\\frac{a_{n}}{a_{n-1}p_{n-1}(x_{i})}\\int_{a}^{b}\\omega(x)p_{n-1}(x)^{2}dx", "p'_{n}(x_{i})", "p_{n+1}(x)", "p_{n+1}(x_{i}) = (a)p_{n}(x_{i}) + (b)p_{n-1}(x_{i})", "p_{n}(x_{i})", "p_{n-1}(x_{i})", "\\frac{1}{b}p_{n+1}\\left(x_i\\right)", "2n - 2", "f(x) = \\prod_{\\begin{smallmatrix} 1 \\leq j \\leq n \\\\ j \\neq i \\end{smallmatrix}}\\frac{\\left(x - x_j\\right)^2}{\\left(x_i - x_j\\right)^2}", "O(n^{2})", "p_n(x) = 0", "O(n)", "r = 0, 1, \\ldots, n - 1", "J\\tilde{P} = x\\tilde{P} - p_n(x) \\times \\mathbf{e}_n", "\\tilde{P} = \\begin{bmatrix} p_0(x) & p_1(x) & \\ldots & p_{n-1}(x) \\end{bmatrix}^\\mathsf{T}", "\\mathbf{e}_n", "\\mathbf{e}_n = \\begin{bmatrix} 0 & \\ldots & 0  & 1 \\end{bmatrix}^\\mathsf{T}", "\\mathbf{J}=\\begin{pmatrix}     a_0 &      1 &      0 &  \\ldots &  \\ldots &  \\ldots \\\\     b_1 &    a_1 &      1 &       0 &  \\ldots &  \\ldots \\\\       0 &    b_2 &    a_2 &       1 &       0 &  \\ldots \\\\       0 & \\ldots & \\ldots &  \\ldots &  \\ldots &       0 \\\\  \\ldots & \\ldots &      0 & b_{n-2} & a_{n-2} &       1 \\\\  \\ldots & \\ldots & \\ldots &       0 & b_{n-1} & a_{n-1}\\end{pmatrix}", "\\begin{align}                                            \\mathcal{J}_{i,i} = J_{i,i} &= a_{i-1}        && i=1,\\ldots,n \\\\   \\mathcal{J}_{i-1,i} = \\mathcal{J}_{i,i-1} = \\sqrt{J_{i,i-1}J_{i-1,i}} &= \\sqrt{b_{i-1}} && i=2,\\ldots,n.\\end{align}", "2n", "\\int_a^b \\omega(x)\\,f(x)\\,dx - \\sum_{i=1}^n w_i\\,f(x_i) = \\frac{f^{(2n)}(\\xi)}{(2n)!} \\, (p_n, p_n)", "\\frac{\\left(b - a\\right)^{2n+1} \\left(n!\\right)^4}{(2n + 1)\\left[\\left(2n\\right)!\\right]^3} f^{(2n)} (\\xi), \\qquad a < \\xi < b", "n + 1", "2n + 1", "2n - 3", "\\int_{-1}^1 {f(x) \\, dx} = \\frac {2} {n(n-1)}[f(1) + f(-1)] + \\sum_{i = 2}^{n-1} {w_i f(x_i)} + R_n", "P'_{n-1}(x)", "w_i = \\frac{2}{n(n - 1)\\left[P_{n-1}\\left(x_i\\right)\\right]^2}, \\qquad x_i \\ne \\pm 1", "R_n = \\frac{-n\\left(n - 1\\right)^3 2^{2n-1} \\left[\\left(n - 2\\right)!\\right]^4}{(2n-1) \\left[\\left(2n - 2\\right)!\\right]^3} f^{(2n-2)}(\\xi), \\qquad -1 < \\xi < 1", "n=2", "n=64" ],
  "definiens" : [ {
    "definition" : "degree",
    "score" : 0.9453459543067276
  }, {
    "definition" : "weight",
    "score" : 0.9354455338607601
  }, {
    "definition" : "orthogonal polynomial of degree",
    "score" : 0.8869384888466118
  }, {
    "definition" : "node",
    "score" : 0.8156281470077591
  }, {
    "definition" : "point",
    "score" : 0.8022875183803613
  }, {
    "definition" : "polynomial of degree",
    "score" : 0.7750090327883464
  }, {
    "definition" : "quadrature rule",
    "score" : 0.7497796404273385
  }, {
    "definition" : "different point",
    "score" : 0.722
  }, {
    "definition" : "maximal degree",
    "score" : 0.722
  }, {
    "definition" : "nontrivial polynomial of degree",
    "score" : 0.722
  }, {
    "definition" : "number of integration point",
    "score" : 0.722
  }, {
    "definition" : "rule",
    "score" : 0.7192457990475117
  }, {
    "definition" : "point Gaussian quadrature rule",
    "score" : 0.6914391534391533
  }, {
    "definition" : "exact result for polynomial",
    "score" : 0.655347773062961
  }, {
    "definition" : "Carl Friedrich Gauss",
    "score" : 0.6155138327319538
  }, {
    "definition" : "suitable choice of the node",
    "score" : 0.6155138327319538
  }, {
    "definition" : "common domain of integration",
    "score" : 0.5243586668802829
  }, {
    "definition" : "polynomial",
    "score" : 0.4970008209188347
  }, {
    "definition" : "yield",
    "score" : 0.47268661752418045
  }, {
    "definition" : "operation",
    "score" : 0.46939133710966724
  }, {
    "definition" : "coefficient",
    "score" : 0.4656140905654223
  }, {
    "definition" : "i.e.",
    "score" : 0.46299378674999686
  }, {
    "definition" : "order",
    "score" : 0.43173725383009665
  }, {
    "definition" : "derivative",
    "score" : 0.4255575553803544
  }, {
    "definition" : "remainder",
    "score" : 0.42018802543982114
  }, {
    "definition" : "Orthogonal polynomial",
    "score" : 0.41801085979529806
  }, {
    "definition" : "integrand",
    "score" : 0.41409080900331086
  }, {
    "definition" : "term",
    "score" : 0.41409080900331086
  }, {
    "definition" : "term of the orthogonal polynomial",
    "score" : 0.41409080900331086
  }, {
    "definition" : "zero",
    "score" : 0.41409080900331086
  }, {
    "definition" : "scalar product",
    "score" : 0.3874009181358471
  }, {
    "definition" : "integral",
    "score" : 0.3675052425961445
  }, {
    "definition" : "formula",
    "score" : 0.3476297252506894
  }, {
    "definition" : "3-term recurrence relation",
    "score" : 0.3476296296296296
  }, {
    "definition" : "error estimate",
    "score" : 0.3476296296296296
  }, {
    "definition" : "point rule",
    "score" : 0.3476296296296296
  }, {
    "definition" : "relation",
    "score" : 0.3476296296296296
  }, {
    "definition" : "Gauss-Jacobi quadrature rule",
    "score" : 0.346123588807084
  }, {
    "definition" : "root",
    "score" : 0.33822823574196087
  }, {
    "definition" : "Gaussian quadrature",
    "score" : 0.3382281401259042
  }, {
    "definition" : "asymptotic formula",
    "score" : 0.3382281401209011
  }, {
    "definition" : "continuous derivative",
    "score" : 0.3382281401209011
  }, {
    "definition" : "Eq",
    "score" : 0.3382281401209011
  }, {
    "definition" : "idea",
    "score" : 0.3382281401209011
  }, {
    "definition" : "integral expression for the weight",
    "score" : 0.3382281401209011
  }, {
    "definition" : "L'Hôpital 's rule",
    "score" : 0.3382281401209011
  }, {
    "definition" : "limit",
    "score" : 0.3382281401209011
  }, {
    "definition" : "Lobatto quadrature of function",
    "score" : 0.3382281401209011
  }, {
    "definition" : "low degree",
    "score" : 0.3382281401209011
  }, {
    "definition" : "lower degree",
    "score" : 0.3382281401209011
  }, {
    "definition" : "Mathematica source code",
    "score" : 0.3382281401209011
  }, {
    "definition" : "proof",
    "score" : 0.3382281401209011
  }, {
    "definition" : "property",
    "score" : 0.3382281401209011
  }, {
    "definition" : "quotient",
    "score" : 0.3382281401209011
  }, {
    "definition" : "root of the polynomial",
    "score" : 0.3382281401209011
  }, {
    "definition" : "similar matrix",
    "score" : 0.3382281401209011
  }, {
    "definition" : "st",
    "score" : 0.3382281401209011
  }, {
    "definition" : "way",
    "score" : 0.3382281401209011
  }, {
    "definition" : "accurate approximation to the integral",
    "score" : 0.3247130775647236
  }, {
    "definition" : "Legendre polynomial",
    "score" : 0.31153901422191566
  }, {
    "definition" : "Abscissas",
    "score" : 0.31153824925343726
  }, {
    "definition" : "choice of node",
    "score" : 0.31153824925343726
  }, {
    "definition" : "eigenvalue of this tridiagonal matrix",
    "score" : 0.31153824925343726
  }, {
    "definition" : "equation",
    "score" : 0.31153824925343726
  }, {
    "definition" : "expression in equation",
    "score" : 0.31153824925343726
  }, {
    "definition" : "Golub-Welsch algorithm",
    "score" : 0.31153824925343726
  }, {
    "definition" : "high precision",
    "score" : 0.31153824925343726
  }, {
    "definition" : "i.e. monic",
    "score" : 0.31153824925343726
  }, {
    "definition" : "important special case",
    "score" : 0.31153824925343726
  }, {
    "definition" : "infinity",
    "score" : 0.31153824925343726
  }, {
    "definition" : "matrix form",
    "score" : 0.31153824925343726
  }, {
    "definition" : "node for the Gaussian quadrature",
    "score" : 0.31153824925343726
  }, {
    "definition" : "recurrence relation",
    "score" : 0.31153824925343726
  }, {
    "definition" : "side",
    "score" : 0.31153824925343726
  }, {
    "definition" : "so-called Jacobi matrix",
    "score" : 0.31153824925343726
  }, {
    "definition" : "standard basis vector",
    "score" : 0.31153824925343726
  }, {
    "definition" : "term in the bracket",
    "score" : 0.31153824925343726
  }, {
    "definition" : "three-term recurrence relation",
    "score" : 0.31153824925343726
  }, {
    "definition" : "value",
    "score" : 0.31153824925343726
  }, {
    "definition" : "weight function",
    "score" : 0.31153824925343726
  }, {
    "definition" : "simplest integration problem",
    "score" : 0.2717050738909084
  }, {
    "definition" : "Gauss node",
    "score" : 0.2717044045434898
  }, {
    "definition" : "approximation",
    "score" : 0.27170430892743314
  }, {
    "definition" : "dash",
    "score" : 0.27170430892243
  }, {
    "definition" : "decimal place",
    "score" : 0.27170430892243
  }, {
    "definition" : "exactness",
    "score" : 0.27170430892243
  }, {
    "definition" : "exactness for polynomial",
    "score" : 0.27170430892243
  }, {
    "definition" : "gauss-quadrature",
    "score" : 0.27170430892243
  }, {
    "definition" : "Gaussian quadrature formula",
    "score" : 0.27170430892243
  }, {
    "definition" : "integral expression",
    "score" : 0.27170430892243
  }, {
    "definition" : "interval",
    "score" : 0.27170430892243
  }, {
    "definition" : "Legendre-Gaussian quadrature weight",
    "score" : 0.27170430892243
  }, {
    "definition" : "Newton 's method",
    "score" : 0.27170430892243
  }, {
    "definition" : "note",
    "score" : 0.27170430892243
  }, {
    "definition" : "nth degree",
    "score" : 0.27170430892243
  }, {
    "definition" : "standard Legendre polynomial of m-th degree",
    "score" : 0.27170430892243
  }, {
    "definition" : "three-term recurrence for evaluation",
    "score" : 0.27170430892243
  }, {
    "definition" : "abscissa",
    "score" : 0.22444712916306217
  }, {
    "definition" : "element",
    "score" : 0.22444712916306217
  }, {
    "definition" : "extension of Gauss quadrature rule",
    "score" : 0.22444712916306217
  }, {
    "definition" : "practice",
    "score" : 0.22444712916306217
  }, {
    "definition" : "right hand side",
    "score" : 0.22444712916306217
  }, {
    "definition" : "same eigenvalue",
    "score" : 0.22444712916306217
  }, {
    "definition" : "symmetric tridiagonal matrix",
    "score" : 0.22444712916306217
  }, {
    "definition" : "Gauss -- Kronrod rule",
    "score" : 0.1757248677248677
  }, {
    "definition" : "Lagrange interpolation one",
    "score" : 0.1757248677248677
  }, {
    "definition" : "Stoer",
    "score" : 0.1757248677248677
  }, {
    "definition" : "actual error",
    "score" : 0.13053705521107906
  }, {
    "definition" : "Bulirsch remark that this error estimate",
    "score" : 0.13053705521107906
  } ]
}

Specify your own input