fn gauss_legendre_quad_pair_calculated(n: usize, k: usize) -> (f64, f64)
Expand description

General Information

Calculation of quad-pair for Gauss-Legendre integration. in contrast to it’s tabulated version, these are calculated via the hardcoded constants and a series of approximations. Returns the j-th zero of the n-th Legendre polynomial alongside the domain element which, upon evaluation of the polynomial, would result in such a zero.

Parameters

  • n - the n-th Legendre polynomial
  • k - the k-th zero of the n-th Legendre polynomial