Laguerre.cast()

classmethod Laguerre.cast(series, domain=None, window=None) [source] Convert series to series of this class. The series is expected to be an instance of some polynomial series of one of the types supported by by the numpy.polynomial module, but could be some other class that supports the convert method. New in version 1.7.0. Parameters: series : series The series instance to be converted. domain : {None, array_like}, optional If given, the array must be of the form [beg, end], where b

Laguerre.has_samecoef()

Laguerre.has_samecoef(other) [source] Check if coefficients match. New in version 1.6.0. Parameters: other : class instance The other class must have the coef attribute. Returns: bool : boolean True if the coefficients are the same, False otherwise.

numpy.expm1()

numpy.expm1(x[, out]) = Calculate exp(x) - 1 for all elements in the array. Parameters: x : array_like Input values. Returns: out : ndarray Element-wise exponential minus one: out = exp(x) - 1. See also log1p log(1 + x), the inverse of expm1. Notes This function provides greater precision than exp(x) - 1 for small values of x. Examples The true value of exp(1e-10) - 1 is 1.00000000005e-10 to about 32 significant digits. This example shows the superiority of expm1 in this case

numpy.ones_like()

numpy.ones_like(a, dtype=None, order='K', subok=True) [source] Return an array of ones with the same shape and type as a given array. Parameters: a : array_like The shape and data-type of a define these same attributes of the returned array. dtype : data-type, optional Overrides the data type of the result. New in version 1.6.0. order : {?C?, ?F?, ?A?, or ?K?}, optional Overrides the memory layout of the result. ?C? means C-order, ?F? means F-order, ?A? means ?F? if a is Fortran con

numpy.core.defchararray.find()

numpy.core.defchararray.find(a, sub, start=0, end=None) [source] For each element, return the lowest index in the string where substring sub is found. Calls str.find element-wise. For each element, return the lowest index in the string where substring sub is found, such that sub is contained in the range [start, end]. Parameters: a : array_like of str or unicode sub : str or unicode start, end : int, optional Optional arguments start and end are interpreted as in slice notation. Returns

numpy.core.defchararray.less_equal()

numpy.core.defchararray.less_equal(x1, x2) [source] Return (x1 <= x2) element-wise. Unlike numpy.less_equal, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters: x1, x2 : array_like of str or unicode Input arrays of the same shape. Returns: out : ndarray or bool Output array of bools, or a single bool if x1 and x2 are scalars. See also equal, not_equal, gr

numpy.nanmax()

numpy.nanmax(a, axis=None, out=None, keepdims=False) [source] Return the maximum of an array or maximum along an axis, ignoring any NaNs. When all-NaN slices are encountered a RuntimeWarning is raised and NaN is returned for that slice. Parameters: a : array_like Array containing numbers whose maximum is desired. If a is not an array, a conversion is attempted. axis : int, optional Axis along which the maximum is computed. The default is to compute the maximum of the flattened array. o

ndarray.fill()

ndarray.fill(value) Fill the array with a scalar value. Parameters: value : scalar All elements of a will be assigned this value. Examples >>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([ 1., 1.])

Legendre.has_samedomain()

Legendre.has_samedomain(other) [source] Check if domains match. New in version 1.6.0. Parameters: other : class instance The other class must have the domain attribute. Returns: bool : boolean True if the domains are the same, False otherwise.

Legendre.linspace()

Legendre.linspace(n=100, domain=None) [source] Return x, y values at equally spaced points in domain. 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. New in version 1.5.0. Parameters: n : int, optional Number of point pairs to return. The default value is 100. domain : {None, array_like}, option