+
    i&                     @   ^ RI t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHtHt ^ RIHtHtHt ^ R	IHt ]! R
RR7      t]! RRR7      t]! RRR./R7      tRt]'       d    ]! ]
! R4      RR4       Rt]
! R4      w  ttt]
! RRR7      w  tt t!]
! R]R7      w  t"t#t$]! R] 4      t%]! R]4      t&]! R]!4      t'R t(R  t)R! t*R" t+R# t,R$ t-R% t.R& t/R' t0R( t1R) t2R* t3R+ t4R, t5R- t6R. t7R/ t8R0 t9R1 t:R2 t;R3 t<R4 t=R5 t>R6 t?R#   ]]]3 d    Rt Li ; i)7    N)Path)Mod)Eq)symbols)import_module)IndexedBaseIdx)autowrapufuncifyCodeWrapError)skipnumpyz1.6.1)min_module_versionCythonz0.15.1z
numpy.f2pyfromlistf2py)import_kwargsFxf95Ta b czn m dintegerzA B Cclsijkc                    R\         R\        R\        /pW,          '       d!   V R8X  d   \        '       g   \	        R4       R# \	        RV ,          4       R# )zQ
Return True if module exists, otherwise run skip().

module should be a string.
r   r   r   zCouldn't run f2py.TzCouldn't import %s.N)r   r   r   	f2pyworksr   )modulemodnamess   & `/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/external/tests/test_autowrap.py
has_moduler#   "   sE     &&$?HVII%&		'(    c                 6   \        \        \        ,           \        ,          ^,          P	                  4       W4      p\        \        \        ,           \        ,          ^,          P	                  4       W4      pV! ^R^4      R8X  g   Q hV! ^R^4      R8X  g   Q hR# )   g      ?Ng      )r
   abcexpand)languagebackendfgs   &&  r"   runtest_autowrap_twicer0   7   sr    AE19q.((*H>AAE19q.((*H>A QA;$QA;#r$   c                     \        R 4       \        \        \        \        3,          W4      pV! \        P                  ^d4      4      ^d8X  g   Q hR# )r   N)r#   r
   Ar   r   eye)r,   r-   traces   && r"   runtest_autowrap_tracer5   @   s9    wQq!tWh0E3 C'''r$   c           	         \        R 4       \        R\        R7      w  r#\        V\        ,          \
        \        \        3,          V\        ,          ,          4      p\        W@V4      p\        P                  P                  ^
^4      p\        P                  P                  ^4      p\        P                  Wb4      p\        P                  \        P                  W5! Wb4      ,
          4      4      R8  g   Q hR# )r   zx yr   vIh%<=N)r#   r   r   r   r   r2   r   r
   r   randomranddotsumabs)r,   r-   r   yexprmvMs   &&     r"   runtest_autowrap_matrix_vectorrA   F   s    w5k*DAadAadGAaDL!D	$'	*B 	"b!A"A		!A99UYYq2a8|,-555r$   c           	         \        R 4       \        \        \        \        3,          \
        \        \        3,          \        \        \        3,          ,          4      p\        W V4      p\        P                  P                  ^
^4      p\        P                  P                  ^^4      p\        P                  WE4      p\        P                  \        P                  Wc! WE4      ,
          4      4      R8  g   Q hR# )r   r7   N)r#   r   Cr   r   r2   r   Br
   r   r8   r9   r:   r;   r<   )r,   r-   r>   matmatM1M2M3s   &&     r"   runtest_autowrap_matrix_matrixrI   S   s    wa1gqAwqAw'Ddg.F 
		2r	"B			2r	"B	2	B99UYYrF2N234u<<<r$   c                    \        R 4       \        R4      w  r#p\        W#V.W#,          V,           VR7      p\        W$V.W#,          V,           VR7      p\        P	                  R^^24      p\        P	                  R^^24      p\        P	                  R^^24      pWs,          V,           p\        P
                  P                  V! WsV4      V4       \        P
                  P                  V! WtV4      V4       R# )r   r   )r-   Nr'   )r#   r   r   r   linspacetestingassert_allclose)	r,   r-   r(   r)   r*   fabcfacbgridexpecteds	   &&       r"   runtest_ufuncifyrT   _   s    wgGA!Q1IqsQw8DQ1IqsQw8D>>"a$Dr1b!Ar1b!AvzH	MM!!$t"2H=	MM!!$t"2H=r$   c                 ,   \         \        ,
          \        ,           ^,          p\        P                  ! 4       p\        W WR\         \        ,
          \        ,           \         \        \        33R7      pV! ^^^4      ^8X  g   Q h\        P                  ! V4       F  pVP                  R4      '       d   VP                  R4      '       g   K3  \        VR,           V,           4      ;_uu_ 4       pVP                  4       pV^ ,          R8X  g   Q hR\        P                  ,           V^,          9   g   Q hVR,          R	R
R	RRRVRR ,           R,           R,           RRRRRRRRRRRRRRRRR.8X  g   Q h RRR4       K  	  R#   + '       g   i     K  ; i)   helper)tempdirhelperswrapped_code_.c/zP/******************************************************************************
zCode generated with SymPy :   NNzP *                                                                            *
zP *              See http://www.sympy.org/ for more information.               *
zP *                      This file is part of 'autowrap'                       *
zQ ******************************************************************************/
Nzh"
z#include <math.h>
z.double helper(double a, double b, double c) {
z   double helper_result;
z   helper_result = a - b + c;
z   return helper_result;
z}
z0double autofunc(double a, double b, double c) {
z   double autofunc_result;
z/   autofunc_result = pow(helper(a, b, c), 13);
z   return autofunc_result;
z
#include "rL   )r(   r)   r*   tempfilemkdtempr
   oslistdir
startswithendswithopen	readlinessympy__version__)r,   r-   r>   tmpr.   filefilliness   &&      r"   runtest_issue_10274rm   l   sh   EAID



C"AEAI1ay9	;AQ1:??

300T]]45H5H#)d"##sMMOE8rrrr/%2C2CCuQxOOO9ccccd!D"I-t3d:%A,1,C.B./!   	 $#	   $##s   .BFFc                    \        R 4       \        R4      w  r#rEpW#,
          V,           V,
          V,           ^,          pRp\        WpWW4WV3RW#,
          V,           W#V33R7      p	\        P                  P                  V	! ^^^^^4      V4       \        WpWW4WV3RW#,
          W#33RWE,
          WE333R7      p	\        P                  P                  V	! ^^^^^4      V4       R# )r   za, b, c, d, ef1)argsrY   f2Ng    S8A)r#   r   r
   r   rN   rO   )
r,   r-   r(   r)   r*   der>   exp_resr.   s
   &&        r"   runtest_issue_15337ru      s    w O,MA!EAIMA"D*G1	A!95	7A	MM!!!Aq!Q"2G<1/$v1FG	IA	MM!!!Aq!Q"2G<r$   c                     \        R 4       \        R4      w  r\        V R4      \        VR4      ,
          p\        W V.RR7      p\	        VP                  V RVR/4      P                  4       4      p\        V! RR4      V,
          4      R8  g   Q h\        RRR	7      w  r\        V ^4      \        VR4      ,
          p\        W V.RR7      pV! ^^4      VP                  V ^V^/4      8X  g   Q hR
# )r   zx, yg      @F95)rp   r,   g      @g@g+=Tr   Ng       r'   )r#   r   r   r
   floatxreplaceevalfr<   )r   r=   r>   r.   rt   s        r"   test_issue_15230r{      s    v6?DAq#;Q%DFU3ADMM1c1c"2399;<Gqc{W$%---64(DAq!9s1bz!DFU3AQ7dmmQ1aL1111r$   c                  4    \        R 4       \        RR 4       R# r   r   Nr#   r0    r$   r"   test_wrap_twice_f95_f2pyr          v5&)r$   c                  4    \        R 4       \        RR 4       R# r}   r#   r5   r   r$   r"   test_autowrap_trace_f95_f2pyr      r   r$   c                  4    \        R 4       \        RR 4       R# r}   r#   rA   r   r$   r"   $test_autowrap_matrix_vector_f95_f2pyr          v"5&1r$   c                  4    \        R 4       \        RR 4       R# r}   r#   rI   r   r$   r"   $test_autowrap_matrix_matrix_f95_f2pyr      r   r$   c                  4    \        R 4       \        RR 4       R# r}   r#   rT   r   r$   r"   test_ufuncify_f95_f2pyr      s    vUF#r$   c                  4    \        R 4       \        RR 4       R# r}   r#   ru   r   r$   r"   test_issue_15337_f95_f2pyr      s    vv&r$   c                  4    \        R 4       \        RR4       R# )r   rC   cythonNr~   r   r$   r"   test_wrap_twice_c_cythonr      s    x3)r$   c                  4    \        R 4       \        RR4       R# r   C99r   Nr   r   r$   r"   test_autowrap_trace_C_Cythonr      s    x5(+r$   c                  4    \        R 4       \        RR4       R# r   r   r   r$   r"   $test_autowrap_matrix_vector_C_cythonr          x"5(3r$   c                  4    \        R 4       \        RR4       R# r   r   r   r$   r"   $test_autowrap_matrix_matrix_C_cythonr      r   r$   c                  4    \        R 4       \        RR4       R# r   r   r   r$   r"   test_ufuncify_C_Cythonr      s    xUH%r$   c                  4    \        R 4       \        RR4       R# r   C89r   N)r#   rm   r   r$   r"   test_issue_10274_C_cythonr          xx(r$   c                  4    \        R 4       \        RR4       R# r   r   r   r$   r"   test_issue_15337_C_cythonr      r   r$   c                  f   \        R 4       ^ RIHp  ^ RIHp ^ RIHp  ! R RV4      pV! 4       pV! VR7      pVP                  P                  R4       V \        ,          pRp\        P                  ! 4       p\        \        P                  P                  VR	4      4      P!                  R
4       \#        VRWR7      p	V	! R4      R8X  g   Q h\        P$                  ! V4       F  p
V
P'                  R4      '       g   K  V
P)                  R4      '       g   K5  \+        \        P                  P                  W4      4      ;_uu_ 4       pVP-                  4       pWzP/                  RR4      ,          pRP                  VR,          4      V8X  g   Q h RRR4       K  	  R#   + '       g   i     K  ; i)r   )pi)
C99CodeGen)C99CodePrinterc                   &   a  ] tR tRt o R tRtV tR# )/test_autowrap_custom_printer.<locals>.PiPrinteri
  c                    R # )S_PIr   )selfr>   s   &&r"   	_print_Pi9test_autowrap_custom_printer.<locals>.PiPrinter._print_Pi  s    r$   r   N)__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell__)__classdict__s   @r"   	PiPrinterr   
  s     	 	r$   r   )printerz#include "shortpi.h"z#include "%s"
#include <math.h>
#include "shortpi.h"

double autofunc(double a) {

   double autofunc_result;
   autofunc_result = S_PI*a;
   return autofunc_result;

}
z	shortpi.hz#define S_PI 3.14r   )r-   rX   code_geng@wrapped_coder[   z.h :   NNNgK7A`*@)r#   sympy.core.numbersr   sympy.utilities.codegenr   sympy.printing.cr   preprocessor_statementsappendr(   r_   r`   r   ra   pathjoin
write_textr
   rb   rc   rd   re   rf   replace)r   r   r   r   r   genr>   rS   tmpdirfuncfilenamer.   rl   s                r"   test_autowrap_custom_printerr     sJ   x%2/N  kG
W
%C&&'=>6D
	  Ffk	*+667JKD(FID9
""" JJv&~..83D3DT3J3Jbggll6455#&6&6tT&BBwwuRy)X555 65 '555s   AFF0c                  4    \        R 4       \        RR4       R# )r   r   r   Nr   r   r$   r"   test_ufuncify_numpyr   5  s     xUG$r$   )@rg   r_   ra   pathlibr   sympy.core.modr   sympy.core.relationalr   sympy.core.symbolr   sympy.externalr   sympy.tensorr   r	   sympy.utilities.autowrapr
   r   r   sympy.testing.pytestr   r   r   r   r   ImportErrorOSErrorr(   r)   r*   nmrr   r2   rD   rC   r   r   r   r#   r0   r5   rA   rI   rT   rm   ru   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r$   r"   <module>r      se     	   $ % ( ) F F %g':	xH	=\*vh1GH	uf- 	
'
1a
'4
(1a
'{
+1aQKQKQK)*(
6	=
>'T=*2**
*
2
2
$
'*
,
4
4
&
)
)
-6d%A	 ;0 	s   /D DD