### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.7 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Polynomials »
- Polynomial Package »
- Polynomial Module (`numpy.polynomial.polynomial`) »

# numpy.polynomial.polynomial.polyline

`numpy.polynomial.polynomial.``polyline`(off, scl)

  Returns an array representing a linear polynomial.

  Parameters : | off, scl : scalars The “y-intercept” and “slope” of the line, respectively.
  Returns : | y : ndarray This module’s representation of the linear polynomial `off + scl*x`.

  See also

  `chebline`

  Examples

      >>> from numpy import polynomial as P
      >>> P.polyline(1,-1)
      array([ 1, -1])
      >>> P.polyval(1, P.polyline(1,-1)) # should be 0
      0.0

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.7 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Polynomials »
- Polynomial Package »
- Polynomial Module (`numpy.polynomial.polynomial`) »