Ë
    3^(h±H  ã                   ó&   — d dl mZ  G d„ de«      Zy)é   )Úxrangec                   ó@   — e Zd Zd„ Zd
d„Zd„ Zd„ Zd„ Zdd„Zd„ Z	d„ Z
y	)ÚMatrixCalculusMethodsc                 óî  ‡ — ˆ fd„}d}d}	  ||«      ‰ j                   k  rn|dz  }Œ||z  }t        t        d‰ j                  ‰ j	                  |d«      «      «      «      }|}‰ j
                  }‰ xj                  |dz   z  c_        	 |d|z  z  }|j                  }‰ j                  |«      }	‰ j                  |«      }
‰ j                  |«      }‰ j                  d«      }t        d|dz   «      D ]E  }|‰ j                  ||z
  dz   «      d|z  |z
  dz   |z  z  z  }||z  }||z  }|
|z  }
|	d|z  |z  z  }	ŒG ‰ j                  |	|
«      }t        |«      D ]  }||z  }Œ	 	 |‰ _        |dz  S # |‰ _        w xY w)	a,  
        Exponential of a matrix using Pade approximants.

        See G. H. Golub, C. F. van Loan 'Matrix Computations',
        third Ed., page 572

        TODO:
         - find a good estimate for q
         - reduce the number of matrix multiplications to improve
           performance
        c                 ó¤   •— ‰j                  d«      dd| z  z
  z  ‰j                  | «      dz  z  ‰j                  d| z  «      dz  d| z  dz   z  z  S )Nr   é   é   )ÚmpfÚ	factorial)ÚpÚctxs    €úV/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/mpmath/matrices/calculus.pyÚeps_padez1MatrixCalculusMethods._exp_pade.<locals>.eps_pade   s_   ø€ Ø—7‘7˜1“:  ! A¡#¡Ñ&Ø—‘˜aÓ  !Ñ#ñ$Ø%(§]¡]°1°Q±3Ó%7¸Ñ%:¸aÀ¹cÀA¹gÑ%FñHð Hó    é   é   r	   Úinfr   r   éÿÿÿÿ)ÚepsÚintÚmaxÚmagÚmnormÚprecÚdpsÚrowsÚeyer
   ÚrangeÚlu_solve_mat)r   Úar   ÚqÚextraqÚjÚextrar   ÚnaÚdenÚnumÚxÚcÚkÚcxÚfs   `               r   Ú	_exp_padezMatrixCalculusMethods._exp_pade   sœ  ø€ ô	Hð ˆØˆØÙ˜‹{˜SŸW™WÒ$ØØ�‰FˆAð ð 	
ˆV‰ˆÜ”�A�s—w‘w˜sŸy™y¨¨5Ó1Ó2Ó3Ó4ˆØˆØ�x‰xˆØ�Š�5˜1‘9Ñ�ð	Ø�!�Q‘$‘ˆAØ—‘ˆBØ—'‘'˜"“+ˆCØ—'‘'˜"“+ˆCØ—‘˜“ˆAØ—‘˜“
ˆAÜ˜1˜a ™c“]ò $�Ø�S—W‘W˜Q ™U Q™YÓ'¨!¨A©#°©'°A©+¸Ñ):Ñ;Ñ;�Ø�a‘C�Ø�q‘S�Ø�r‘	�Ø˜˜Q‘w ‘|Ñ#‘ð$ð × Ñ   cÓ*ˆAÜ˜1“Xò �Ø�a‘C‘ñð ˆCŒHØ�‰sˆ
øð ˆC�Hús   ÂCE+ Å+	E4c                 óô  — |dk(  rZ| j                   }	 | j                  |«      }| xj                   d|j                  z  z  c_         | j                  |«      }|| _         |S | j                  |«      }| j                   }t	        t        d| j                  | j                  |d«      «      «      «      }|t	        d|dz  z  «      z  }	 | xj                   dd|z  z   z  c_         | j                  ­}|d|z  z  }|}|dz  |z   }d}		 ||d| j                  |	«      z  z  z  }| j                  |d«      |k  rn||z  }|	dz  }	Œ;t        |«      D ]  }	||z  }Œ	 	 || _         |dz  }|S # || _         w xY w# || _         w xY w)aþ  
        Computes the matrix exponential of a square matrix `A`, which is defined
        by the power series

        .. math ::

            \exp(A) = I + A + \frac{A^2}{2!} + \frac{A^3}{3!} + \ldots

        With method='taylor', the matrix exponential is computed
        using the Taylor series. With method='pade', Pade approximants
        are used instead.

        **Examples**

        Basic examples::

            >>> from mpmath import *
            >>> mp.dps = 15; mp.pretty = True
            >>> expm(zeros(3))
            [1.0  0.0  0.0]
            [0.0  1.0  0.0]
            [0.0  0.0  1.0]
            >>> expm(eye(3))
            [2.71828182845905               0.0               0.0]
            [             0.0  2.71828182845905               0.0]
            [             0.0               0.0  2.71828182845905]
            >>> expm([[1,1,0],[1,0,1],[0,1,0]])
            [ 3.86814500615414  2.26812870852145  0.841130841230196]
            [ 2.26812870852145  2.44114713886289   1.42699786729125]
            [0.841130841230196  1.42699786729125    1.6000162976327]
            >>> expm([[1,1,0],[1,0,1],[0,1,0]], method='pade')
            [ 3.86814500615414  2.26812870852145  0.841130841230196]
            [ 2.26812870852145  2.44114713886289   1.42699786729125]
            [0.841130841230196  1.42699786729125    1.6000162976327]
            >>> expm([[1+j, 0], [1+j,1]])
            [(1.46869393991589 + 2.28735528717884j)                        0.0]
            [  (1.03776739863568 + 3.536943175722j)  (2.71828182845905 + 0.0j)]

        Matrices with large entries are allowed::

            >>> expm(matrix([[1,2],[2,3]])**25)
            [5.65024064048415e+2050488462815550  9.14228140091932e+2050488462815550]
            [9.14228140091932e+2050488462815550  1.47925220414035e+2050488462815551]

        The identity `\exp(A+B) = \exp(A) \exp(B)` does not hold for
        noncommuting matrices::

            >>> A = hilbert(3)
            >>> B = A + eye(3)
            >>> chop(mnorm(A*B - B*A))
            0.0
            >>> chop(mnorm(expm(A+B) - expm(A)*expm(B)))
            0.0
            >>> B = A + ones(3)
            >>> mnorm(A*B - B*A)
            1.8
            >>> mnorm(expm(A+B) - expm(A)*expm(B))
            42.0927851137247

        Úpader   r	   r   ç      à?é
   é    )r   Úmatrixr   r-   r   r   r   r   r   r
   r   )
r   ÚAÚmethodr   Úresr#   ÚtolÚTÚYr*   s
             r   ÚexpmzMatrixCalculusMethods.expm5   s‰  € ðz �VÒØ—8‘8ˆDð Ø—J‘J˜q“M�Ø—’˜A˜aŸf™f™HÑ$•Ø—m‘m AÓ&�à�”ØˆJØ�J‰J�q‹MˆØ�x‰xˆÜ”�A�s—w‘w˜sŸy™y¨¨5Ó1Ó2Ó3Ó4ˆØ	ŒS��T˜3‘Y‘ÓÑˆð	Ø�HŠH˜˜Q˜q™S™Ñ �HØ—7‘7�(ˆCØ�!�Q‘$‘ˆAØˆAØ�1‘�q‘ˆAØˆAØØ�Q˜!˜CŸG™G A›J™,Ñ'Ñ'�Ø—9‘9˜Q Ó&¨Ò,ØØ�Q‘�Ø�Q‘�ð ô ˜A“Yò �Ø�a‘C‘ñð ˆCŒHØ	ˆQ‰ˆØˆøð1  �•ûð, ˆC�Hús   “AE" ÃBE. Å"	E+Å.	E7c                 ó,  — d| j                  || j                  z  «      | j                  || j                   z  «      z   z  }t        |j                  | j                  «      j                  t
        «      «      s|j                  | j                  «      }|S )aì  
        Gives the cosine of a square matrix `A`, defined in analogy
        with the matrix exponential.

        Examples::

            >>> from mpmath import *
            >>> mp.dps = 15; mp.pretty = True
            >>> X = eye(3)
            >>> cosm(X)
            [0.54030230586814               0.0               0.0]
            [             0.0  0.54030230586814               0.0]
            [             0.0               0.0  0.54030230586814]
            >>> X = hilbert(3)
            >>> cosm(X)
            [ 0.424403834569555  -0.316643413047167  -0.221474945949293]
            [-0.316643413047167   0.820646708837824  -0.127183694770039]
            [-0.221474945949293  -0.127183694770039   0.909236687217541]
            >>> X = matrix([[1+j,-2],[0,-j]])
            >>> cosm(X)
            [(0.833730025131149 - 0.988897705762865j)  (1.07485840848393 - 0.17192140544213j)]
            [                                     0.0               (1.54308063481524 + 0.0j)]
        r0   ©r:   r#   ÚsumÚapplyÚimÚabsÚre©r   r4   ÚBs      r   ÚcosmzMatrixCalculusMethods.cosm“   sl   € ð0 �3—8‘8˜A˜cŸe™e™GÓ$ s§x¡x°°C·E±E°6±
Ó';Ñ;Ñ<ˆÜ�1—7‘7˜3Ÿ6™6“?×(Ñ(¬Ó-Ô.Ø—‘˜Ÿ™“ˆAØˆr   c                 ó,  — d| j                  || j                  z  «      | j                  || j                   z  «      z
  z  }t        |j                  | j                  «      j                  t
        «      «      s|j                  | j                  «      }|S )aì  
        Gives the sine of a square matrix `A`, defined in analogy
        with the matrix exponential.

        Examples::

            >>> from mpmath import *
            >>> mp.dps = 15; mp.pretty = True
            >>> X = eye(3)
            >>> sinm(X)
            [0.841470984807897                0.0                0.0]
            [              0.0  0.841470984807897                0.0]
            [              0.0                0.0  0.841470984807897]
            >>> X = hilbert(3)
            >>> sinm(X)
            [0.711608512150994  0.339783913247439  0.220742837314741]
            [0.339783913247439  0.244113865695532  0.187231271174372]
            [0.220742837314741  0.187231271174372  0.155816730769635]
            >>> X = matrix([[1+j,-2],[0,-j]])
            >>> sinm(X)
            [(1.29845758141598 + 0.634963914784736j)  (-1.96751511930922 + 0.314700021761367j)]
            [                                    0.0                  (0.0 - 1.1752011936438j)]
        y       €      à¿r<   rB   s      r   ÚsinmzMatrixCalculusMethods.sinm°   sl   € ð0 �s—x‘x  #§%¡%¡Ó(¨3¯8©8°A¸¿¹°v±JÓ+?Ñ?Ñ@ˆÜ�1—7‘7˜3Ÿ6™6“?×(Ñ(¬Ó-Ô.Ø—‘˜Ÿ™“ˆAØˆr   c                 ón   — | j                   dz  }| j                  ||z  |«      | j                  |«      z  S )Ng333333Ó?)r#   ÚsqrtmÚsqrt)r   r4   Ú_may_rotateÚus       r   Ú
_sqrtm_rotz MatrixCalculusMethods._sqrtm_rotÍ   s3   € ð �E‰E�3‰JˆØ�y‰y˜˜1™˜kÓ*¨S¯X©X°a«[Ñ8Ð8r   c                 óZ  — | j                  |«      }|dz  |k(  r|S | j                  }|rd| j                  |«      }t        | j	                  |«      «      d| j
                  z  k  r)| j                  |«      dk  r| j                  ||dz
  «      S 	 | xj                  dz  c_        | j
                  dz  }|}|dz  x}}d}		 |}
	 d|| j                  |«      z   z  d|| j                  |«      z   z  }}| j                  ||
z
  d«      }| j                  |d«      }|||z  k  rnL|r)|	dkD  r$||d	z  k  s| j                  ||dz
  «      || _        S |	dz  }	|	| j                  kD  r| j                  ‚Œ­|| _        |dz  }|S # t        $ r |r| j                  ||dz
  «      }Y Œ0‚ w xY w# || _        w xY w)
a  
        Computes a square root of the square matrix `A`, i.e. returns
        a matrix `B = A^{1/2}` such that `B^2 = A`. The square root
        of a matrix, if it exists, is not unique.

        **Examples**

        Square roots of some simple matrices::

            >>> from mpmath import *
            >>> mp.dps = 15; mp.pretty = True
            >>> sqrtm([[1,0], [0,1]])
            [1.0  0.0]
            [0.0  1.0]
            >>> sqrtm([[0,0], [0,0]])
            [0.0  0.0]
            [0.0  0.0]
            >>> sqrtm([[2,0],[0,1]])
            [1.4142135623731  0.0]
            [            0.0  1.0]
            >>> sqrtm([[1,1],[1,0]])
            [ (0.920442065259926 - 0.21728689675164j)  (0.568864481005783 + 0.351577584254143j)]
            [(0.568864481005783 + 0.351577584254143j)  (0.351577584254143 - 0.568864481005783j)]
            >>> sqrtm([[1,0],[0,1]])
            [1.0  0.0]
            [0.0  1.0]
            >>> sqrtm([[-1,0],[0,1]])
            [(0.0 - 1.0j)           0.0]
            [         0.0  (1.0 + 0.0j)]
            >>> sqrtm([[j,0],[0,j]])
            [(0.707106781186547 + 0.707106781186547j)                                       0.0]
            [                                     0.0  (0.707106781186547 + 0.707106781186547j)]

        A square root of a rotation matrix, giving the corresponding
        half-angle rotation matrix::

            >>> t1 = 0.75
            >>> t2 = t1 * 0.5
            >>> A1 = matrix([[cos(t1), -sin(t1)], [sin(t1), cos(t1)]])
            >>> A2 = matrix([[cos(t2), -sin(t2)], [sin(t2), cos(t2)]])
            >>> sqrtm(A1)
            [0.930507621912314  -0.366272529086048]
            [0.366272529086048   0.930507621912314]
            >>> A2
            [0.930507621912314  -0.366272529086048]
            [0.366272529086048   0.930507621912314]

        The identity `(A^2)^{1/2} = A` does not necessarily hold::

            >>> A = matrix([[4,1,4],[7,8,9],[10,2,11]])
            >>> sqrtm(A**2)
            [ 4.0  1.0   4.0]
            [ 7.0  8.0   9.0]
            [10.0  2.0  11.0]
            >>> sqrtm(A)**2
            [ 4.0  1.0   4.0]
            [ 7.0  8.0   9.0]
            [10.0  2.0  11.0]
            >>> A = matrix([[-4,1,4],[7,-8,9],[10,2,11]])
            >>> sqrtm(A**2)
            [  7.43715112194995  -0.324127569985474   1.8481718827526]
            [-0.251549715716942    9.32699765900402  2.48221180985147]
            [  4.11609388833616   0.775751877098258   13.017955697342]
            >>> chop(sqrtm(A)**2)
            [-4.0   1.0   4.0]
            [ 7.0  -8.0   9.0]
            [10.0   2.0  11.0]

        For some matrices, a square root does not exist::

            >>> sqrtm([[0,1], [0,0]])
            Traceback (most recent call last):
              ...
            ZeroDivisionError: matrix is numerically singular

        Two examples from the documentation for Matlab's ``sqrtm``::

            >>> mp.dps = 15; mp.pretty = True
            >>> sqrtm([[7,10],[15,22]])
            [1.56669890360128  1.74077655955698]
            [2.61116483933547  4.17786374293675]
            >>>
            >>> X = matrix(\
            ...   [[5,-4,1,0,0],
            ...   [-4,6,-4,1,0],
            ...   [1,-4,6,-4,1],
            ...   [0,1,-4,6,-4],
            ...   [0,0,1,-4,5]])
            >>> Y = matrix(\
            ...   [[2,-1,-0,-0,-0],
            ...   [-1,2,-1,0,-0],
            ...   [0,-1,2,-1,0],
            ...   [-0,0,-1,2,-1],
            ...   [-0,-0,-0,-1,2]])
            >>> mnorm(sqrtm(X) - Y)
            4.53155328326114e-19

        r2   é   r	   r1   é€   r0   r   é   gü©ñÒMbP?)r3   r   Údetr@   r?   r   rA   rL   ÚinverseÚZeroDivisionErrorr   ÚNoConvergence)r   r4   rJ   r   Údr7   r9   ÚZÚIr*   ÚYprevÚmag1Úmag2s                r   rH   zMatrixCalculusMethods.sqrtmÓ   sÄ  € ðF �J‰J�q‹MˆàˆQ‰3�!Š8ØˆHØ�x‰xˆÙØ—‘˜“
ˆAÜ�3—6‘6˜!“9‹~  3§7¡7¡
Ò*¨s¯v©v°a«y¸1ª}Ø—~‘~ a¨°Q©Ó7Ð7ð	Ø�HŠH˜‰N�HØ—'‘'˜C‘-ˆCØˆAØ�q‘DˆLˆA�ØˆAàØ�ðØ  #§+¡+¨a£.Ñ 0Ñ1°3¸¸#¿+¹+Àa».Ñ8HÑ3I�q�Að —y‘y  5¡¨%Ó0�Ø—y‘y  EÓ*�Ø˜4 ™8Ò#ØÙ 1 q¢5°¸¸u¹Ò1DØŸ>™>¨!¨[¸©]Ó;ð
 ˆC�Hð	 �Q‘�Ø�s—x‘x’<Ø×+Ñ+Ð+ð% ð( ˆCŒHØ	ˆQ‰ˆØˆøô% )ò Ù"ØŸN™N¨1¨k¸!©mÓ<˜Ùàðûð  ˆC�Hús7   Â2F! Ã.E: Ã0AF! Å!F! Å: FÆF! ÆFÆF! Æ!	F*c                 óø  — | j                  |«      }| j                  }	 | xj                  dz  c_        | j                  dz  }|dz  }|}d}	 | j                  |«      }|dz  }| j	                  ||z
  d«      dk  rnŒ0||z
  x}}|dz  }	d}
	 |
dz  r	|	||
z  z  }	n|	||
z  z  }	||z  }| j	                  |d«      |k  rn!|
dz  }
|
| j                  kD  r| j
                  ‚ŒR	 || _        |	d|z  z  }	|	S # || _        w xY w)a   
        Computes a logarithm of the square matrix `A`, i.e. returns
        a matrix `B = \log(A)` such that `\exp(B) = A`. The logarithm
        of a matrix, if it exists, is not unique.

        **Examples**

        Logarithms of some simple matrices::

            >>> from mpmath import *
            >>> mp.dps = 15; mp.pretty = True
            >>> X = eye(3)
            >>> logm(X)
            [0.0  0.0  0.0]
            [0.0  0.0  0.0]
            [0.0  0.0  0.0]
            >>> logm(2*X)
            [0.693147180559945                0.0                0.0]
            [              0.0  0.693147180559945                0.0]
            [              0.0                0.0  0.693147180559945]
            >>> logm(expm(X))
            [1.0  0.0  0.0]
            [0.0  1.0  0.0]
            [0.0  0.0  1.0]

        A logarithm of a complex matrix::

            >>> X = matrix([[2+j, 1, 3], [1-j, 1-2*j, 1], [-4, -5, j]])
            >>> B = logm(X)
            >>> nprint(B)
            [ (0.808757 + 0.107759j)    (2.20752 + 0.202762j)   (1.07376 - 0.773874j)]
            [ (0.905709 - 0.107795j)  (0.0287395 - 0.824993j)  (0.111619 + 0.514272j)]
            [(-0.930151 + 0.399512j)   (-2.06266 - 0.674397j)  (0.791552 + 0.519839j)]
            >>> chop(expm(B))
            [(2.0 + 1.0j)           1.0           3.0]
            [(1.0 - 1.0j)  (1.0 - 2.0j)           1.0]
            [        -4.0          -5.0  (0.0 + 1.0j)]

        A matrix `X` close to the identity matrix, for which
        `\log(\exp(X)) = \exp(\log(X)) = X` holds::

            >>> X = eye(3) + hilbert(3)/4
            >>> X
            [              1.25             0.125  0.0833333333333333]
            [             0.125  1.08333333333333              0.0625]
            [0.0833333333333333            0.0625                1.05]
            >>> logm(expm(X))
            [              1.25             0.125  0.0833333333333333]
            [             0.125  1.08333333333333              0.0625]
            [0.0833333333333333            0.0625                1.05]
            >>> expm(logm(X))
            [              1.25             0.125  0.0833333333333333]
            [             0.125  1.08333333333333              0.0625]
            [0.0833333333333333            0.0625                1.05]

        A logarithm of a rotation matrix, giving back the angle of
        the rotation::

            >>> t = 3.7
            >>> A = matrix([[cos(t),sin(t)],[-sin(t),cos(t)]])
            >>> chop(logm(A))
            [             0.0  -2.58318530717959]
            [2.58318530717959                0.0]
            >>> (2*pi-t)
            2.58318530717959

        For some matrices, a logarithm does not exist::

            >>> logm([[1,0], [0,0]])
            Traceback (most recent call last):
              ...
            ZeroDivisionError: matrix is numerically singular

        Logarithm of a matrix with large entries::

            >>> logm(hilbert(3) * 10**20).apply(re)
            [ 45.5597513593433  1.27721006042799  0.317662687717978]
            [ 1.27721006042799  42.5222778973542   2.24003708791604]
            [0.317662687717978  2.24003708791604    42.395212822267]

        r1   rO   r2   r	   r   g      À?r   )r3   r   r   rH   r   rT   )r   r4   r   r7   rW   rC   Únr8   ÚXÚLr*   s              r   ÚlogmzMatrixCalculusMethods.logm^  s5  € ðd �J‰J�q‹MˆØ�x‰xˆð	Ø�HŠH˜‰N�HØ—'‘'˜C‘-ˆCØ�1‘ˆAØˆAØˆAØØ—I‘I˜a“L�Ø�Q‘�Ø—9‘9˜Q˜q™S %Ó(¨5Ò0Øð	 ð
 �a‘CˆKˆA�Ø�!‘ˆAØˆAØØ�q’5Ø˜˜Q™‘J‘Aà˜˜Q™‘J�AØ�Q‘�Ø—9‘9˜Q Ó&¨Ò,ØØ�Q‘�Ø�s—x‘x’<Ø×+Ñ+Ð+ð ð ð
 ˆCŒHØ	ˆQ�‰T‰	ˆØˆøð ˆC�Hús   ŸB?C0 Ã0	C9c                 ó²  — | j                  |«      }| j                  |«      }| j                  }	 | xj                  dz  c_        | j                  |«      r|t	        |«      z  }nZ| j                  |dz  «      r#t	        |dz  «      }| j                  |«      |z  }n#| j                  || j                  |«      z  «      }|| _        |dz  }|S # || _        w xY w)aF  
        Computes `A^r = \exp(A \log r)` for a matrix `A` and complex
        number `r`.

        **Examples**

        Powers and inverse powers of a matrix::

            >>> from mpmath import *
            >>> mp.dps = 15; mp.pretty = True
            >>> A = matrix([[4,1,4],[7,8,9],[10,2,11]])
            >>> powm(A, 2)
            [ 63.0  20.0   69.0]
            [174.0  89.0  199.0]
            [164.0  48.0  179.0]
            >>> chop(powm(powm(A, 4), 1/4.))
            [ 4.0  1.0   4.0]
            [ 7.0  8.0   9.0]
            [10.0  2.0  11.0]
            >>> powm(extraprec(20)(powm)(A, -4), -1/4.)
            [ 4.0  1.0   4.0]
            [ 7.0  8.0   9.0]
            [10.0  2.0  11.0]
            >>> chop(powm(powm(A, 1+0.5j), 1/(1+0.5j)))
            [ 4.0  1.0   4.0]
            [ 7.0  8.0   9.0]
            [10.0  2.0  11.0]
            >>> powm(extraprec(5)(powm)(A, -1.5), -1/(1.5))
            [ 4.0  1.0   4.0]
            [ 7.0  8.0   9.0]
            [10.0  2.0  11.0]

        A Fibonacci-generating matrix::

            >>> powm([[1,1],[1,0]], 10)
            [89.0  55.0]
            [55.0  34.0]
            >>> fib(10)
            55.0
            >>> powm([[1,1],[1,0]], 6.5)
            [(16.5166626964253 - 0.0121089837381789j)  (10.2078589271083 + 0.0195927472575932j)]
            [(10.2078589271083 + 0.0195927472575932j)  (6.30880376931698 - 0.0317017309957721j)]
            >>> (phi**6.5 - (1-phi)**6.5)/sqrt(5)
            (10.2078589271083 - 0.0195927472575932j)
            >>> powm([[1,1],[1,0]], 6.2)
            [ (14.3076953002666 - 0.008222855781077j)  (8.81733464837593 + 0.0133048601383712j)]
            [(8.81733464837593 + 0.0133048601383712j)  (5.49036065189071 - 0.0215277159194482j)]
            >>> (phi**6.2 - (1-phi)**6.2)/sqrt(5)
            (8.81733464837593 - 0.0133048601383712j)

        r1   r   r	   )r3   Úconvertr   Úisintr   rH   r:   r_   )r   r4   Úrr   ÚvÚys         r   ÚpowmzMatrixCalculusMethods.powmÐ  sº   € ðh �J‰J�q‹MˆØ�K‰K˜‹NˆØ�x‰xˆð
	Ø�HŠH˜‰N�HØ�y‰y˜Œ|Øœ˜Q›‘K‘Ø—‘˜1˜Q™3”Ü˜˜!™“H�Ø—I‘I˜a“L AÑ%‘à—H‘H˜Q˜sŸx™x¨›{™]Ó+�àˆCŒHØ	ˆQ‰ˆØˆøð ˆC�Hús   °BC Ã	CN)Útaylor)r   )Ú__name__Ú
__module__Ú__qualname__r-   r:   rD   rF   rL   rH   r_   rf   © r   r   r   r      s2   „ ò,ó\\ò|ò:ò:9óIòVpódCr   r   N)Úlibmp.backendr   Úobjectr   rk   r   r   ú<module>rn      s   ðÝ "ôN˜Fõ Nr   