MCPcopy Create free account
hub / github.com/numpy/numpy / mapparms

Method mapparms

numpy/polynomial/_polybase.py:824–851  ·  view source on GitHub ↗

Return the mapping parameters. The returned values define a linear map ``off + scl*x`` that is applied to the input arguments before the series is evaluated. The map depends on the ``domain`` and ``window``; if the current ``domain`` is equal to the ``window`` the re

(self)

Source from the content-addressed store, hash-verified

822 return self(kind.identity(domain, window=window, symbol=self.symbol))
823
824 def mapparms(self):
825 """Return the mapping parameters.
826
827 The returned values define a linear map ``off + scl*x`` that is
828 applied to the input arguments before the series is evaluated. The
829 map depends on the ``domain`` and ``window``; if the current
830 ``domain`` is equal to the ``window`` the resulting map is the
831 identity. If the coefficients of the series instance are to be
832 used by themselves outside this class, then the linear function
833 must be substituted for the ``x`` in the standard representation of
834 the base polynomials.
835
836 Returns
837 -------
838 off, scl : float or complex
839 The mapping function is defined by ``off + scl*x``.
840
841 Notes
842 -----
843 If the current domain is the interval ``[l1, r1]`` and the window
844 is ``[l2, r2]``, then the linear mapping function ``L`` is
845 defined by the equations::
846
847 L(l1) = l2
848 L(r1) = r2
849
850 """
851 return pu.mapparms(self.domain, self.window)
852
853 def integ(self, m=1, k=[], lbnd=None):
854 """Integrate.

Callers 8

_repr_latex_Method · 0.95
integMethod · 0.95
derivMethod · 0.95
__call__Method · 0.80
fromrootsMethod · 0.80
identityMethod · 0.80
test_mapparmsMethod · 0.80
test_mapparmsFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_mapparmsMethod · 0.64
test_mapparmsFunction · 0.64