You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / polynomial / polyutils / getdomain

function

numpy.polynomial.polyutils:getdomain

source: /numpy/polynomial/polyutils.py :194

Signature

def   getdomain ( x )

Summary

Return a domain suitable for given abscissae.

Extended Summary

Find a domain suitable for a polynomial or Chebyshev series defined at the values supplied.

Parameters

x : array_like

1-d array of abscissae whose domain will be determined.

Returns

domain : ndarray

1-d array containing two values. If the inputs are complex, then the two returned points are the lower left and upper right corners of the smallest rectangle (aligned with the axes) in the complex plane containing the points x. If the inputs are real, then the two points are the ends of the smallest interval containing the points x.

Examples

import numpy as np
from numpy.polynomial import polyutils as pu
points = np.arange(4)**2 - 5; points
pu.getdomain(points)
c = np.exp(complex(0,1)*np.pi*np.arange(12)/6) # unit circle
pu.getdomain(c)

See also

mapdomain
mapparms

Aliases

  • numpy.polynomial.polyutils.getdomain