This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / polynomial / polynomial / polyline

function

numpy.polynomial.polynomial:polyline

source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/polynomial.py :113

Signature

def   polyline ( off scl )

Summary

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.

Examples

from numpy.polynomial import polynomial as P
P.polyline(1, -1)
P.polyval(1, P.polyline(1, -1))  # should be 0

See also

numpy.polynomial.chebyshev.chebline
numpy.polynomial.hermite.hermline
numpy.polynomial.hermite_e.hermeline
numpy.polynomial.laguerre.lagline
numpy.polynomial.legendre.legline

Aliases

  • numpy.polynomial.Polynomial._line
  • numpy.polynomial.polynomial.polyline