numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturns
linspace(self, n=100, domain=None)

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.

versionadded

Parameters

n : int, optional

Number of point pairs to return. The default value is 100.

domain : {None, array_like}, optional

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 which case the class domain is used.

Returns

x, y : ndarray

x is equal to linspace(self.domain[0], self.domain[1], n) and y is the series evaluated at element of x.

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

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/polynomial/_polybase.py#868
type: <class 'function'>
Commit: