bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / _polybase / ABCPolyBase / linspace
function
numpy.polynomial._polybase:ABCPolyBase.linspace
source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/_polybase.py :915
Signature
def linspace ( self , n = 100 , domain = None ) Summary
Return x, y values at equally spaced points in domain.
Extended Summary
Returns the x, y values at n linearly spaced points across the domain. Here y is the value of the polynomial at the points x. By default the domain is the same as that of the series instance. This method is intended mostly as a plotting aid.
Parameters
n: int, optionalNumber of point pairs to return. The default value is 100.
domain: {None, array_like}, optionalIf 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 which case the class domain is used.
Returns
x, y: ndarrayx is equal to linspace(self.domain[0], self.domain[1], n) and y is the series evaluated at element of x.
Aliases
-
numpy.polynomial._polybase.ABCPolyBase.linspace