Did I find the right examples for you? yes no

numpy.polynomial.hermite.hermweight

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

The weight function is :math:`\exp(-x^2)` and the interval of
integration is :math:`[-\inf, \inf]`. the Hermite 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 hermweight(x):
"""
Weight function of the Hermite polynomials.

The weight function is :math:`\exp(-x^2)` and the interval of
integration is :math:`[-\inf, \inf]`. the Hermite 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**2)
return w
```

```    def test_weight(self):
x = np.linspace(-5, 5, 11)
tgt = np.exp(-x**2)
res = herm.hermweight(x)
assert_almost_equal(res, tgt)
```

```    def test_weight(self):