?¡ëPNG  IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À? ¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
Ñò ]ÐKc@ sîdZddklZddddddd d d d d dddddddddgZddkZddkiZddk Z ddk Z ddk l Z e i Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „Zeidd!gƒZeid"gƒZeid!gƒZeid"d!gƒZd#„Zd$„Zd%„Zd&„Zd'„Z d(„Z!d)d*„Z"d!d!d+„Z#d!gd"d!d,„Z$d-„Z%d.„Z&de(d/„Z)d0„Z*e i+d1dd2d3d4d5ƒdUdS(6sÑFunctions for dealing with Chebyshev series. This module provide s a number of functions that are useful in dealing with Chebyshev series as well as a ``Chebyshev`` class that encapsuletes the usual arithmetic operations. All the Chebyshev series are assumed to be ordered from low to high, thus ``array([1,2,3])`` will be treated as the series ``T_0 + 2*T_1 + 3*T_2`` Constants --------- - chebdomain -- Chebyshev series default domain - chebzero -- Chebyshev series that evaluates to 0. - chebone -- Chebyshev series that evaluates to 1. - chebx -- Chebyshev series of the identity map (x). Arithmetic ---------- - chebadd -- add a Chebyshev series to another. - chebsub -- subtract a Chebyshev series from another. - chebmul -- multiply a Chebyshev series by another - chebdiv -- divide one Chebyshev series by another. - chebval -- evaluate a Chebyshev series at given points. Calculus -------- - chebder -- differentiate a Chebyshev series. - chebint -- integrate a Chebyshev series. Misc Functions -------------- - chebfromroots -- create a Chebyshev series with specified roots. - chebroots -- find the roots of a Chebyshev series. - chebvander -- Vandermode like matrix for Chebyshev polynomials. - chebfit -- least squares fit returning a Chebyshev series. - chebtrim -- trim leading coefficients from a Chebyshev series. - chebline -- Chebyshev series of given straight line - cheb2poly -- convert a Chebyshev series to a polynomial. - poly2cheb -- convert a polynomial to a Chebyshev series. Classes ------- - Chebyshev -- Chebyshev series class. Notes ----- The implementations of multiplication, division, integration, and differentiation use the algebraic identities: .. math :: T_n(x) = \frac{z^n + z^{-n}}{2} \\ z\frac{dx}{dz} = \frac{z - z^{-1}}{2}. where .. math :: x = \frac{z + z^{-1}}{2}. These identities allow a Chebyshev series to be expressed as a finite, symmetric Laurent series. These sorts of Laurent series are referred to as z-series in this module. iÿÿÿÿ(tdivisiontchebzerotchebonetchebxt chebdomaintcheblinetchebaddtchebsubtchebmultchebdivtchebvaltchebdertchebintt cheb2polyt poly2chebt chebfromrootst chebvandertchebfittchebtrimt chebrootst ChebyshevN(t polytemplatecC sP|i}tid|dd|iƒ}|d||d)||ddd…S(sôCovert Chebyshev series to z-series. Covert a Chebyshev series to the equivalent z-series. The result is never an empty array. The dtype of the return is the same as that of the input. No checks are run on the arguments as this routine is for internal use. Parameters ---------- cs : 1-d ndarray Chebyshev coefficients, ordered from low to high Returns ------- zs : 1-d ndarray Odd length symmetric z-series, ordered from low to high. iitdtypeNiÿÿÿÿ(tsizetnptzerosR(tcstntzs((s@/usr/lib64/python2.6/site-packages/numpy/polynomial/chebyshev.pyt_cseries_to_zseriesRs  cC s<|idd}||diƒ}|d|c!d9+|S(søCovert z-series to a Chebyshev series. Covert a z series to the equivalent Chebyshev series. The result is never an empty array. The dtype of the return is the same as that of the input. No checks are run on the arguments as this routine is for internal use. Parameters ---------- zs : 1-d ndarray Odd length symmetric z-series, ordered from low to high. Returns ------- cs : 1-d ndarray Chebyshev coefficients, ordered from low to high. ii(Rtcopy(RRR((s@/usr/lib64/python2.6/site-packages/numpy/polynomial/chebyshev.pyt_zseries_to_cseriesjscC sti||ƒS(sÄMultiply two z-series. Multiply two z-series to produce a z-series. Parameters ---------- z1, z2 : 1-d ndarray The arrays must be 1-d but this is not checked. Returns ------- product : 1-d ndarray The product z-series. Notes ----- This is simply convolution. If symmetic/anti-symmetric z-series are denoted by S/A then the following rules apply: S*S, A*A -> S S*A, A*S -> A (Rtconvolve(tz1tz2((s@/usr/lib64/python2.6/site-packages/numpy/polynomial/chebyshev.pyt _zseries_mul‚sc C s³|iƒ}|iƒ}t|ƒ}t|ƒ}|djo||}||d dfS||jo|d d|fS||}|d}||}ti|dd|iƒ}d}|}x„||jov||} ||||<| |||<| |} ||||c!| 8+||||c!| 8+|d7}|d8}qÃW||} | ||<| |} ||||c!| 8+||}||d|d|!iƒ} || fSdS(s¹Divide the first z-series by the second. Divide `z1` by `z2` and return the quotient and remainder as z-series. Warning: this implementation only applies when both z1 and z2 have the same symmetry, which is sufficient for present purposes. Parameters ---------- z1, z2 : 1-d ndarray The arrays must be 1-d and have the same symmetry, but this is not checked. Returns ------- (quotient, remainder) : 1-d ndarrays Quotient and remainder as z-series. Notes ----- This is not the same as polynomial division on account of the desired form of the remainder. If symmetic/anti-symmetric z-series are denoted by S/A then the following rules apply: S/S -> S,S A/A -> S,A The restriction to types of the same symmetry could be fixed but seems like uneeded generality. There is no natural form for the remainder in the case where there is no symmetry. iiRN(RtlenRtemptyR( R!R"tlen1tlen2tdlentscltquotitjtrttmptrem((s@/usr/lib64/python2.6/site-packages/numpy/polynomial/chebyshev.pyt _zseries_divœs@!                  cC sit|ƒd}tidddgd|iƒ}|ti| |dƒd9}t||ƒ\}}|S(sŒDifferentiate a z-series. The derivative is with respect to x, not z. This is achieved using the chain rule and the value of dx/dz given in the module notes. Parameters ---------- zs : z-series The z-series to differentiate. Returns ------- derivative : z-series The derivative Notes ----- The zseries for x (ns) has been multiplied by two in order to avoid using floats that are incompatible with Decimal and likely other specialized scalar types. This scaling has been compensated by multiplying the value of zs by two also so that the two cancels in the division. iiÿÿÿÿiiR(R$RtarrayRtarangeR0(RRtnstdR-((s@/usr/lib64/python2.6/site-packages/numpy/polynomial/chebyshev.pyt _zseries_derÞs !c C sdt|ƒd}tidddgd|iƒ}t||ƒ}ti| |dƒd}||c || *||dc||d)d||<|S(sMIntegrate a z-series. The integral is with respect to x, not z. This is achieved by a change of variable using dx/dz given in the module notes. Parameters ---------- zs : z-series The z-series to integrate Returns ------- integral : z-series The indefinite integral Notes ----- The zseries for x (ns) has been multiplied by two in order to avoid using floats that are incompatible with Decimal and likely other specialized scalar types. This scaling has been compensated by dividing the resulting zs by two. iiiÿÿÿÿiR(R$RR1RR#R2(RRR3tdiv((s@/usr/lib64/python2.6/site-packages/numpy/polynomial/chebyshev.pyt _zseries_intýs! cC s¦ti|gƒ\}|ddd…}|d iƒ}tidddgd|iƒ}x@tdt|ƒƒD])}t||ƒ}||c||7>> import warnings >>> warnings.simplefilter('ignore', RankWarning) See Also -------- chebval : Evaluates a Chebyshev series. chebvander : Vandermonde matrix of Chebyshev series. polyfit : least squares fit using polynomials. linalg.lstsq : Computes a least-squares fit from the matrix. scipy.interpolate.UnivariateSpline : Computes spline fits. Notes ----- The solution are the coefficients ``c[i]`` of the Chebyshev series ``T(x)`` that minimizes the squared error ``E = \sum_j |y_j - T(x_j)|^2``. This problem is solved by setting up as the overdetermined matrix equation ``V(x)*c = y``, where ``V`` is the Vandermonde matrix of `x`, the elements of ``c`` are the coefficients to be solved for, and the elements of `y` are the observed values. This equation is then solved using the singular value decomposition of ``V``. If some of the singular values of ``V`` are so small that they are neglected, then a `RankWarning` will be issued. This means that the coeficient values may be poorly determined. Using a lower order fit will usually get rid of the warning. The `rcond` parameter can also be set to a value smaller than its default, but the resulting fit may be spurious and have large contributions from roundoff error. Fits using Chebyshev series are usually better conditioned than fits using power series, but much can depend on the distribution of the sample points and the smoothness of the data. If the quality of the fit is inadequate splines may be a good alternative. References ---------- .. [1] Wikipedia, "Curve fitting", http://en.wikipedia.org/wiki/Curve_fitting Examples -------- igisexpected deg >= 0sexpected 1D vector for xsexpected non-empty vector for xisexpected 1D or 2D array for ys$expected x and y to have same lengths!The fit may be poorly conditionedN(RKRRYRLtndimt TypeErrorRR\RMR$tfinfoRtepsRtsqrttsumtlatlstsqtTtwarningstwarnR8t RankWarning( R<tyR]trcondtfullR^tAR)tctresidstranktstmsg((s@/usr/lib64/python2.6/site-packages/numpy/polynomial/chebyshev.pyRIs2_        #%cC s%ti|gƒ\}t|ƒdjotigd|iƒSt|ƒdjoti|d |dgƒSt|ƒd}ti||fd|iƒ}d|idd|d…=sJ        B  & ! (  ! " & - 33C < "„ *