{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A collection of functions to find the weights and abscissas for Gaussian Quadrature."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "These calculations are done by finding the eigenvalues of a tridiagonal matrix whose entries are dependent on the coefficients in the recursion formula for the orthogonal polynomials with the corresponding weighting function over the interval."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Many recursion relations for orthogonal polynomials are given:"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "a1n f_{n+1} (x) = (a2n + a3n x ) f_n (x) - a4n f_{n-1} (x)"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The recursion relation of interest is"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "P_{n+1} (x) = (x - A_n) P_n (x) - B_n P_{n-1} (x)"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "where "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "P"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " has a different normalization than "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "f"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The coefficients can be found as:"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "A_n = -a2n / a3n\n\\qquad\nB_n = ( a4n / a3n \\sqrt{h_n-1 / h_n})^2"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "where"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "h_n = \\int_a^b w(x) f_n(x)^2"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "assume:"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "P_0 (x) = 1\n\\qquad\nP_{-1} (x) == 0"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "For the mathematical background, see "
            },
            {
              "__type": "CitationReference",
              "__tag": 4063,
              "label": "golub.welsch-1969-mathcomp"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "CitationReference",
              "__tag": 4063,
              "label": "abramowitz.stegun-1965"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Attributes",
    "Methods",
    "Returns",
    "Yields",
    "Receives",
    "Other Parameters",
    "Raises",
    "Warns",
    "Warnings",
    "Notes"
  ],
  "item_file": "/scipy/special/_orthogonal.py",
  "item_line": 0,
  "item_type": "module",
  "aliases": [
    "scipy.special._orthogonal"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": [
    ".. [golub.welsch-1969-mathcomp]",
    "   Golub, Gene H, and John H Welsch. 1969. Calculation of Gauss",
    "   Quadrature Rules. *Mathematics of Computation* 23, 221-230+s1--s10.",
    "",
    ".. [abramowitz.stegun-1965]",
    "   Abramowitz, Milton, and Irene A Stegun. (1965) *Handbook of",
    "   Mathematical Functions: with Formulas, Graphs, and Mathematical",
    "   Tables*. Gaithersburg, MD: National Bureau of Standards.",
    "   http://www.math.sfu.ca/~cbm/aands/",
    "",
    ".. [townsend.trogdon.olver-2014]",
    "   Townsend, A. and Trogdon, T. and Olver, S. (2014)",
    "   *Fast computation of Gauss quadrature nodes and",
    "   weights on the whole real line*. :arXiv:`1410.5286`.",
    "",
    ".. [townsend.trogdon.olver-2015]",
    "   Townsend, A. and Trogdon, T. and Olver, S. (2015)",
    "   *Fast computation of Gauss quadrature nodes and",
    "   weights on the whole real line*.",
    "   IMA Journal of Numerical Analysis",
    "   :doi:`10.1093/imanum/drv002`."
  ],
  "qa": "scipy.special._orthogonal",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A collection of functions to find the weights and abscissas for Gaussian Quadrature."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "These calculations are done by finding the eigenvalues of a tridiagonal matrix whose entries are dependent on the coefficients in the recursion formula for the orthogonal polynomials with the corresponding weighting function over the interval."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Many recursion relations for orthogonal polynomials are given:"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "a1n f_{n+1} (x) = (a2n + a3n x ) f_n (x) - a4n f_{n-1} (x)"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The recursion relation of interest is"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "P_{n+1} (x) = (x - A_n) P_n (x) - B_n P_{n-1} (x)"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "where "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "P"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " has a different normalization than "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "f"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The coefficients can be found as:"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "A_n = -a2n / a3n\n\\qquad\nB_n = ( a4n / a3n \\sqrt{h_n-1 / h_n})^2"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "where"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "h_n = \\int_a^b w(x) f_n(x)^2"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "assume:"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "P_0 (x) = 1\n\\qquad\nP_{-1} (x) == 0"
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "For the mathematical background, see "
            },
            {
              "__type": "CitationReference",
              "__tag": 4063,
              "label": "golub.welsch-1969-mathcomp"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "CitationReference",
              "__tag": 4063,
              "label": "abramowitz.stegun-1965"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Citation",
          "__tag": 4064,
          "label": "golub.welsch-1969-mathcomp",
          "children": [
            {
              "__type": "Paragraph",
              "__tag": 4045,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "Golub, Gene H, and John H Welsch. 1969. Calculation of Gauss Quadrature Rules. *Mathematics of Computation* 23, 221-230+s1--s10."
                }
              ]
            }
          ]
        },
        {
          "__type": "Citation",
          "__tag": 4064,
          "label": "abramowitz.stegun-1965",
          "children": [
            {
              "__type": "Paragraph",
              "__tag": 4045,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "Abramowitz, Milton, and Irene A Stegun. (1965) *Handbook of Mathematical Functions: with Formulas, Graphs, and Mathematical Tables*. Gaithersburg, MD: National Bureau of Standards. http://www.math.sfu.ca/~cbm/aands/"
                }
              ]
            }
          ]
        },
        {
          "__type": "Citation",
          "__tag": 4064,
          "label": "townsend.trogdon.olver-2014",
          "children": [
            {
              "__type": "Paragraph",
              "__tag": 4045,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "Townsend, A. and Trogdon, T. and Olver, S. (2014) *Fast computation of Gauss quadrature nodes and weights on the whole real line*. :arXiv:`1410.5286`."
                }
              ]
            }
          ]
        },
        {
          "__type": "Citation",
          "__tag": 4064,
          "label": "townsend.trogdon.olver-2015",
          "children": [
            {
              "__type": "Paragraph",
              "__tag": 4045,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "Townsend, A. and Trogdon, T. and Olver, S. (2015) *Fast computation of Gauss quadrature nodes and weights on the whole real line*. IMA Journal of Numerical Analysis :doi:`10.1093/imanum/drv002`."
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "References"
        }
      ],
      "level": 0,
      "target": null
    }
  ],
  "local_refs": []
}