### 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.Polynomial »

# numpy.polynomial.polynomial.Polynomial.linspace

`Polynomial.``linspace`(n=100, domain=None)

  Return x,y values at equally spaced points in domain.

  Returns x, y values at n linearly spaced points across domain. Here y is the value of the polynomial at the points x. By default the domain is the same as that of the Polynomial instance. This method is intended mostly as a plotting aid.

  Parameters : | n : int, optional Number of point pairs to return. The default value is 100. domain : {None, array_like} If not None, the specified domain is used instead of that of the calling instance. It should be of the form `[beg,end]`. The default is None.
  Returns : | x, y : ndarrays `x` is equal to linspace(self.domain[0], self.domain[1], n) `y` is the polynomial evaluated at `x`. .. versionadded:: 1.5.0 :

### 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.Polynomial »