# colour.lagrange_coefficients¶

colour.lagrange_coefficients(r, n=4)[source]

Computes the Lagrange Coefficients at given point $$r$$ for degree $$n$$.

Parameters: r (numeric) – Point to get the Lagrange Coefficients at. n (int, optional) – Degree of the Lagrange Coefficients being calculated. ndarray

References

Examples

>>> lagrange_coefficients(0.1)
array([ 0.8265,  0.2755, -0.1305,  0.0285])