openmc.legendre_from_expcoef¶
- openmc.legendre_from_expcoef(coef, domain=(- 1, 1))[source]¶
Return a Legendre series object based on expansion coefficients.
Given a list of coefficients from FET tally and a array of down, return the numpy Legendre object.
- Parameters
coef (Iterable of float) – A list of coefficients of each term in Legendre polynomials
domain ((2,) List of float) – Domain of the Legendre polynomial
- Returns
A numpy Legendre series class
- Return type
numpy.polynomial.Legendre