+
    iX%                        ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHtHt ^ RIH	t	 ^ RI
Ht ^ RIHtHtHt ^ RIHtHtHt ^ R	IHt ^ R
IHt ^ RIHtHt ]P6                  P9                  R]P:                  ]P<                  ]P>                  ]P@                  ]PB                  .4      ]P6                  P9                  R]! 4       ^3]! ^ ..4      ^ 3]! ^..4      ^3.4      R 4       4       t"]P6                  P9                  R. RO4      ]P6                  P9                  R]! R4      R3]! ]^3]^],          334      ^],          ],          ],
          3]! R 4      ^3]! R!4      R"3]! R#4      ^ 3]! R$4      R3]! R%4      ^<3]! R&4      ^ 3]! R'4      ^3]! R(4      R)3]! R*4      R3]! R+4      ^{3]! ]]]3R,]]]334      ]^,          ]],          ,
          3.4      R 4       4       t#R t$R t%]P6                  P9                  R. R-O4      ]P6                  P9                  R]! R!4      R"3]! R*4      R3.4      R 4       4       t&R t'R t(R t)R t*R t+R t,R t-R t.R# ).    N)I)Rational)Symbolsymbols)sqrt)Poly)Matrixeyeones)xyz)raises)NonSquareMatrixError)	factorialsubfactorialmethodzM, solc                 $    V ! V4      V8X  g   Q hR # N r   Msols   &&&c/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/matrices/tests/test_determinant.pytest_eval_determinantr      s     !9    i  i-  c                 8    VP                  V R 7      V8X  g   Q hR# r   Ndetr   s   &&&r   test_determinantr"      s    p 5553&&&r   c                     a \        R 4      oV3R lp V ! ^4      P                  4       ^ 8X  g   Q hV ! ^4      P                  4       ^ 8X  g   Q hV ! ^4      P                  4       ^ 8X  g   Q hR# )ac                    < \        \        V 4       UUu. uF+  p\        V 4       Uu. uF  q"SV,          ,           NK  	  upNK-  	  upp4      # u upi u uppi r   )r	   range)njir$   s   &  r   <lambda>"test_issue_13835.<locals>.<lambda>Z   sL    &#(8-#+a -2!H5Hqqs77H5#+- .5 -s   A
AA
A
N)r   r!   )r   r$   s    @r   test_issue_13835r,   X   sU    A	.AQ488:??Q488:??Q488:??r   c                     \        ^ ^
\        ,          ^
\        ,          ^ .^
\        ,          ^ ^ ^
\        ,          .^
\        ,          ^ ^^\        ,          ,           ^
\        ,          .^ ^
\        ,          ^
\        ,          ^^\        ,          ,           ..4      p V P                  4       p\        P                  ! \        VP                  4       4      4      pW\        ^4      ,          ,
          P                  4       ^ 8X  g   Q hR# )r   N)	r	   r   	eigenvalsrandomchoicelistkeysr
   r!   )r   evtest_evs      r   test_issue_14517r5   a   s    r!t1A&	A!1A&	A!Q1WA&r!t1a!A#g&	( 	)A
 
BmmDO,GA##%***r   c                 8    VP                  V R 7      V8X  g   Q hR# r   r    r   s   &&&r   test_legacy_detr7   m   s      5553&&&r   c                     \        W R  4      # )c                     \        W8H  4      # r   )intr)   r(   s   &&r   r*   !eye_Determinant.<locals>.<lambda>   s
    S[r   r	   r'   s   &r   eye_Determinantr?      s    !011r   c                     \        W R  4      # )c                     ^ # r   r   r;   s   &&r   r*   #zeros_Determinant.<locals>.<lambda>   s    Qr   r=   r>   s   &r   zeros_DeterminantrD      s    !''r   c                  0  aa \        ^^. R
O4      o\        \        V3R l4       \        ^4      p \	        ^4      pV P
                  ! 4       ^ 8X  g   Q hVP                  4       ^8X  g   Q h\        R4      p\        ^ ^ . 4      o\        ^^^.4      p\        ^^. RO4      p\        ^^. RO4      p\        ^^V^^^^^^^^^	^
^^^^^.4      o^ RIHpH	pH
pHp	Hp
Hp \        ^^WiV
^ W{^ ^ V.	4      p\        ^^V^ ^ W^ WV.	4      p\        ^^V^,          ^ ^ WbR,          ^ WxVR,          .	4      pSP                  4       ^8X  g   Q hVP                  4       ^8X  g   Q hVP                  4       R8X  g   Q hVP                  4       ^8X  g   Q hSP                  4       ^V,          ^,
          8X  g   Q hSP                  RR7      ^V,          ^,
          8X  g   Q hSP                  RR7      ^V,          ^,
          8X  g   Q hSP                  RR7      ^V,          ^,
          8X  g   Q hVP                  4       Wg,          V,          8X  g   Q hVP                  4       Wg,          V,          8X  g   Q hVP                  4       ^8X  g   Q h\        \        V3R l4       R	# )   c                  $   < S P                  4       # r   r    r$   s   r   r*   test_det.<locals>.<lambda>   s    r   r   )r)   r(   klmr'   	domain-ger   bareiss	berkowitzc                  (   < S P                  R R7      # )test)
iszerofuncr    es   r   r*   rI      s    quuu7r   N   rF               rV   rF   rW   rX   )	rV   rF   rW   rX   rY   rZ         r]   )r	   r   r   rD   r?   r!   r   	sympy.abcr)   r(   rJ   rK   rL   r'   
ValueError)r   eyr   bcdr)   r(   rJ   rK   rL   r'   fghr$   rT   s                  @@r   test_detri      sO   q!'(A
1!A		B557a<<668q==sAq!RAq!aSAq!\"Aq!01Aq!	
Aq!Q1aAr2r2r2>	@A**q!aAq!1a01Aq!aAqQa01Aq!adAq!UAqQU;<A 557a<<557a<<557b==557a<<557acBh555$!b00055	5"acBh...555$!b000557ac!e557ac!e557a<<
:78r   c                     \        . RO. RO. RO.4      p V P                  4       R8X  g   Q h\        ^^4       F  p\        W4      P                  4       \        W4      P                  P                  4       u;8X  d   \        V4      8X  g   Q h Q h\        W4      \        V4      ,
          P                  4       \        W4      \        V4      ,
          P                  P                  4       u;8X  d   \        V4      8X  d   K  Q h Q h	  \        R4      w  r#rEp\        W#WEV.4      p V P                  4       V P                  P                  4       u;8X  d$   W#,           V,           V,           V,           8X  g   Q h Q hR# )rV   i  za_1 a_2 a_3 a_4 a_5NrV   rF   rW   rX   rY   rZ   r\   r]   	   )	r	   perr&   r   Tr   r
   r   r   )r   r)   a1a2a3a4a5s          r   test_permanentrv      s   	9i01A557c>>1b\Az~~4:<<#3#3#5E1EEEEEQ
3q6!&&(T!ZA->,A,A,E,E,GZ<XY?ZZZZZ  !!67BBB#$A557accggi927R<"#4r#999999r   c                    a \        R 4      p \        ^^V ^^^^^^^^^	^
^^^^^.4      p\        . RO^LR	V ,          ^D,
          ^V ,          ^,
          R
V ,          ^,           .R^V ,          ^,           RV ,          ^,           ^V ,          ^0,
          .^0R
V ,          ^H,
          ^V ,          R
V ,          ^,           ..4      pVP                  4       V8X  g   Q hVP                  RR7      V8X  g   Q hVP                  RR7      V8X  g   Q hVP                  RR7      V8X  g   Q hVP                  RR7      V8X  g   Q h\        ^^. RO4      o\        \        V3R l4       R# )r   rN   r   rO   birdlaplacec                  $   < S P                  4       # r   )adjugaterH   s   r   r*   test_adjugate.<locals>.<lambda>   s    r   N)rX   rX   r   rU   )r   r	   r{   r   r   )r   rT   adjr$   s      @r   test_adjugater      sP   sAq!	
Aq!Q1aAr2r2r2>	@A 0s1urzBqD1HbdRi0	r!tcz3q519qsRx01r	1bdRi0	2 3C
 ::<3::Y:'3...::[:)S000::V:$+++::Y:'3...q!'(A
!56r   c            
      2   \         p \        ^^. RO4      p\        ^^. RO4      pVP                  4       \        ^4      8X  g   Q hVP	                  V4      \        ^^V ! ^'4      ^,          V ! ^44      ^,          V ! ^4      ^,          .4      8X  g   Q h\        P
                  ! ^^4      \        ^^^ ^ .4      8X  g   Q h\        ^^4      \        ^^^^.4      8X  g   Q hVP                  4       V8X  g   Q h\        ^4      \        ^4      P                  4       8X  g   Q h\        . RO. RO. RO.4      pVP                  4       \        . RO. RO. R	O.4      8X  g   Q h\        . RO. R
O. RO.4      pVP                  4       \        . RO. RO. RO.4      8X  g   Q hR# )rV   Nrk   )rW   rX   rY   )rV   rW   rF   )rF   rZ   rW   )rF   rW   rZ   )   r   )rF   rW   )rV   r   rl   rm   )r   rZ   r   )rZ   r   rZ   )
r   r	   normr   projectzerosr   copyr
   cofactor_matrix)Rv1v2rQ   s       r   	test_utilr      sg   A	1i	 B	1i	 B779R   ::b>VAq1R58QrU2XquQw*GHHHH<<11q!f!55551:1q!f----779??q6SV++----9i34D!k:678 8 89i34D![+678 8 8r   c                  F  aa \        R 4      p \        ^^V ^^^^^^^^^	^
^^^^^.4      o\        V ^^.. RO. RO.4      p\        . RORRV ,          ^D,
          ^V ,          ^,           RV ,          ^H,
          .^^V ,          ^,
          RV ,          ^,           ^V ,          .^ RV ,          ^,           ^V ,          ^0,
          RV ,          ^,           ..4      p\        V ^^.. RO. RO.4      pSP                  ^^4      V8X  g   Q hSP                  RR4      V8X  g   Q hSP                  ^^4      RV ,          ^,
          8X  g   Q hSP	                  ^^4      ^V ,          ^,           8X  g   Q hSP                  4       V8X  g   Q hSP                  RR7      V8X  g   Q hSP                  RR7      V8X  g   Q hSP                  RR7      V8X  g   Q hSP                  RR7      V8X  g   Q h\        \        V3R l4       \        \        V3R l4       \        \        V3R l4       \        ^^. RO4      oSP                  ^ ^ 4      \        ^^..4      8X  g   Q h\        \        R	 4       \        \        V3R
 l4       \        \        V3R l4       \        \        V3R l4       R# )r   rN   r   rO   rx   ry   c                  (   < S P                  ^^4      # rX   cofactorrS   s   r   r*   *test_cofactor_and_minors.<locals>.<lambda>   s    qzz!Q/r   c                  (   < S P                  ^^4      # r   minorrS   s   r   r*   r      s    qwwq!}r   c                  (   < S P                  ^^4      # r   )minor_submatrixrS   s   r   r*   r      s    q00A6r   c                  <    \        ^ ^ . 4      P                  ^ ^ 4      # rB   )r	   r   r   r   r   r*   r      s    q!R((A.r   c                  (   < S P                  ^ ^ 4      # rB   r   rH   s   r   r*   r     s    Aq)9r   c                  (   < S P                  ^ ^ 4      # rB   r   rH   s   r   r*   r     s    Ar   c                  $   < S P                  4       # r   )r   rH   s   r   r*   r     s    ):):)<r   N)rF   rn      )         )rX   L   r   0   r}   r~   r   r   rl   )rF   rn   
   r^   irU   )	r   r	   r   r   r   r   r   ra   r   )r   rL   cmsubr$   rT   s       @@r   test_cofactor_and_minorsr      s   sAq!	
Aq!Q1aAr2r2r2>	@A 	
a! 	A 
/	SURZARTBY/
r!tax#a%!)1Q3/
bdRi1Q38RTBY/	1 
2B
 AJ C
 Q"a'''R$+++771a=CECK'''::ar!tcz)))"$$$I."444K0B666F+r111I."444
:/0
:,-
:67q!'(AQ"fq!fX&6666
: / 0
!9:
!67
!<=r   c                     \        R 4      \        R4      r\        R4      \        R4      r2^ RIHpHpHp \        ^^. R
O4      p\        ^4      P                  V 4      \        V ^,
          ^,          V 4      8X  g   Q h\        ^4      P                  V4      \        V^,
          ^,          V4      8X  g   Q hVP                  4       \        V ^,          ^V ^,          ,          ,
          ^V ,          ,
          V 4      8X  g   Q h\        \        R 4       \        ^^. RO4      pVP                  4       \        V ^,          V 4      8X  g   Q h\        ^^. RO4      pVP                  4       \        V ^,          ^V ^,          ,          ,
          RV ^,          ,          ,           RV ,          ,
          R,           V 4      8X  g   Q h\        ^^V ^ ^ WA^ WVV.	4      pVP                  4       \        V^,          W,           V,           V^,          ,          ,
          W0V,          W,          ,           W,          ,           ,          ,           W,          V,          ,
          V4      8X  g   Q hR	# )r   r   r   t)r$   rc   rd   c                  <    \        ^.^..4      P                  4       # )rV   )r	   charpolyr   r   r   r*   test_charpoly.<locals>.<lambda>  s    !qc
);)D)D)Fr   ik"  i i| N)	rV   rF   rW   rX   rY   rZ   r\   r]   rn   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )-   r   r   r   r      r   r   r   r   W   r   r   r   r   r   )r   r`   r$   rc   rd   r	   r?   r   r   r   r   )	r   r   r   r   r$   rc   rd   rL   r'   s	            r   test_charpolyr     s   #;sq#;sqq!01A1&&q)T1q51*a-@@@@1&&q)T1q51*a-@@@@::<41r!Q$wA 5q9999
!FGq!EFA::<41a=(((q!IJA::<41s1a4x$q!t) ;fQh F PRSTTTTq!aAqQa01A::<41Aq!t| 3a1QSo EA MqQQQQr   )rM   rN   rO   rx   ry   lu))r   rF   )r]   r^   ))rV   rV   rV   rk   )rV   rW   rZ   ))rW   r_   r   rY   )r_   rV   r_   rF   r   r_   rY   r   rY   r   rW   rX   i)r[   )rY   rZ   r\   r]   )rn   r   r   r   r   r         )rW   rF   r   r   r   r   rW   rF   r   r   r   r   rW   rF   r   r   r   r   rW   rF   )rF   r   r   r   rW   ))rW   r   r   r   )r_   rV   r   r   r   r   ))rV   r   r   r   )rY   r   r   r   )rn   r   r   r   r   )r   r   r   r   )r   r   r   r   rW   ))rV   r   rV   rF   r   )rF   r   rV   rV   rX   )rF   rV   rV   r^   rW   )rW   rF   r^   rV   r]   )rV   rV   rV   r   rZ   i))r   rF   rW   rX   rY   )rV   r   rW   rX   rY   )rV   rF   r   rX   rY   )rV   rF   rW   r_   rY   )rV   rF   rW   rX   r^   ))rF   r\   r^   rW   rF   )r   r   rV   r   rV   )r_   r   r\   r   rF   )r   r_   rX   rY   rW   )rV   r   r   r   rV   )rV   r   r   )bareisdet_ludet_LUBareisBAREISS	BERKOWITZLU)/r/   pytestsympy.core.numbersr   r   sympy.core.symbolr   r   (sympy.functions.elementary.miscellaneousr   sympy.polys.polytoolsr   sympy.matricesr	   r
   r   r`   r   r   r   sympy.testing.pytestr   sympy.matrices.exceptionsr   (sympy.functions.combinatorial.factorialsr   r   markparametrize_eval_det_bareiss_eval_det_berkowitz_eval_det_bird_eval_det_laplace_eval_det_lur   r"   r,   r5   r7   r?   rD   ri   rv   r   r   r   r   r   r   r   <module>r      s?       ' / 9 & , ,   ' : L 
f88
633V5H5H$ 
 XqMaSE]AaSE]A$ 
  $B C  qAh!A#h Q3q519&      ! #'(  ! " $%&    ! #&	'
    ! #%&  ! " $%&    ! #&	'
  # $ &)	*
  % & (-	.
  # $ &)	*
 q!Qi!Qi qD1Q3J(c4$ 4j'k4Cn'	+  $J K   ! #'(  % & (-	.
$ 
'
K'2("9H	:7&8&(>TRr   