Did I find the right examples for you? yes no

# numpy.polynomial.laguerre.lagweight

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
```Weight function of the Laguerre polynomials.

The weight function is :math:`exp(-x)` and the interval of integration
is :math:`[0, \inf]`. The Laguerre polynomials are orthogonal, but not
normalized, with respect to this weight function.

Parameters
----------
x : array_like
Values at which the weight function will be computed.(more...)
```

```        def lagweight(x):
"""Weight function of the Laguerre polynomials.

The weight function is :math:`exp(-x)` and the interval of integration
is :math:`[0, \inf]`. The Laguerre polynomials are orthogonal, but not
normalized, with respect to this weight function.

Parameters
----------
x : array_like
Values at which the weight function will be computed.

Returns
-------
w : ndarray
The weight function at `x`.

Notes
-----

"""
w = np.exp(-x)
return w
```

```    def test_weight(self):
x = np.linspace(0, 10, 11)
tgt = np.exp(-x)
res = lag.lagweight(x)
assert_almost_equal(res, tgt)
```

```    def test_weight(self):