Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Hermite series whose graph is a straight line.



Parameters
----------
off, scl : scalars
    The specified line is given by ``off + scl*x``.

Returns(more...)

        def hermline(off, scl) :
    """
    Hermite series whose graph is a straight line.



    Parameters
    ----------
    off, scl : scalars
        The specified line is given by ``off + scl*x``.

    Returns
    -------
    y : ndarray
        This module's representation of the Hermite series for
        ``off + scl*x``.

    See Also
    --------
    polyline, chebline

    Examples
    --------
    >>> from numpy.polynomial.hermite import hermline, hermval
    >>> hermval(0,hermline(3, 2))
    3.0
    >>> hermval(1,hermline(3, 2))
    5.0

    """
    if scl != 0 :
        return np.array([off, scl/2])
    else :
        return np.array([off])
        


src/n/u/nupic-linux64-HEAD/lib64/python2.6/site-packages/numpy/polynomial/tests/test_hermite.py   nupic-linux64(Download)
    def test_hermline(self) :
        assert_equal(herm.hermline(3,4), [3, 2])
 
    def test_herm2poly(self) :
        for i in range(10) :

src/n/u/numpy-1.8.1/numpy/polynomial/tests/test_hermite.py   numpy(Download)
    def test_hermline(self) :
        assert_equal(herm.hermline(3, 4), [3, 2])
 
    def test_herm2poly(self) :
        for i in range(10) :