+
    i              	       Z   ^ RI t ^ RIHtHt ^ RIHt ^ RIHt ^ RIH	t	 ]! R4      t
]
'       g   Rt] P                  P                  ] P                  P                  ] P                  P                  ] P                  P                  ]4      4      4      4      tRR ltR	 tR
 tR tR tR tR# )    N)cossin)import_module)skip)parse_autolevantlr4Tc           
         \         P                  P                  \        R RV 4      p\         P                  P                  \        R RV4      p\	        V4      ;_uu_ 4       p\        VRR7      pRRR4       \	        V4      ;_uu_ 4       p\        V4       F\  w  rxVP                  R4      '       d    MB XP                  R4      V,          p	VP                  4       V	P                  4       8X  g   Q hK^  	  RRR4       R#   + '       g   i     L; i  \         d3    RT,           R,           p
\        T
P                  T^,           4      4      hi ; i  + '       g   i     R# ; i)	autolevtest-examplesT)include_numericN#
zmismatch in z in line no: {0})ospathjoinFILE_DIRopenr   	enumerate
startswithsplitrstrip	ExceptionAssertionErrorformat)in_filenameout_filename	test_namein_file_pathcorrect_file_pathfgenerated_codeidxline1line2msgs   &&&        ^/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/parsing/tests/test_autolev.py_test_examplesr'      s   77<<)_ +-LXy/%13	l		q&q$? 
 
	 	 A#A,JC$$8&,,T237||~777 ' 
!	  
	  8$y03EE$SZZA%6778 
!	 	 s0    C?	*E4=D1E?D	=E	EE#	c                  \    . ROp V  F!  pVR,           pVR,           p\        W#V4       K#  	  R# )	ruletest1.al.pyN)r)   	ruletest2	ruletest3	ruletest4	ruletest5	ruletest6	ruletest7	ruletest8	ruletest9
ruletest10
ruletest11
ruletest12)r'   liin_filepathout_filepaths       r&   test_rule_testsr<   &   s1    	%A %i5y{!4     c                      . ROp V  F]  p\         P                  P                  RVR,           4      p\         P                  P                  RVR,           4      p\        W#V4       K_  	  R# )mass_spring_damperzpydy-example-repor*   r+   N)r?   chaos_pendulumdouble_pendulumnon_min_pendulum)r   r   r   r'   r7   s       r&   test_pydy_examplesrC   2   sQ    	A ggll#6E	Bww||$7UC{!4 r=   c                  n   \         P                  P                  \        R RR4      p \         P                  P	                  V 4      '       dj   . ROpV F]  p\         P                  P                  RVR,           4      p\         P                  P                  RVR,           4      p\        W4V4       K_  	  R# R# )r
   r   zautolev-tutorialr*   r+   N)tutor1tutor2tutor3tutor4tutor5tutor6tutor7r   r   r   r   isdirr'   )dir_pathr8   r9   r:   r;   s        r&   test_autolev_tutorialrO   =   s    ww||Hi.0H 
ww}}XA'',,'91u9EK77<<(:AIFL;a8  r=   c                     \         P                  P                  \        R RR4      p \         P                  P	                  V 4      '       d   . R
Op. ROp. ROp. ROpVR3VR3VR3VR3.pV Fh  w  rgV F]  p\         P                  P                  RWxR,           4      p	\         P                  P                  RWxR,           4      p
\        WV4       K_  	  Kj  	  R	# R	# )r
   r   zdynamics-onlinech1ch2ch3ch4r*   r+   N)z1-4z1-5z1-6z1-7z1-8z1-9_1z1-9_2z1-9_3)
z2-1z2-2z2-3z2-4z2-5z2-6z2-7z2-8z2-9circular)z3-1_1z3-1_2z3-2_1z3-2_2z3-2_3z3-2_4z3-2_5z3-3)z4-1_1z4-2_1z4-4_1z4-4_2z4-5_1z4-5_2rL   )rN   rQ   rR   rS   rT   chapterschnamer9   r:   r;   s              r&   test_dynamics_onlinerY   K   s    ww||Hi-/H 
ww}}XLD%L3,esElK HB ggll+<dIN!ww||,=tYO{!<  ! r=   c                     \         '       g   \        R4       Rp \        V 4      p/ p/ p\        WV4       VR,          P	                  VR,          4      pVR,          P                  VR,          4      pVR,          P                  VR,          4      pVR,          P                  VR,          4      pVR,          P                  4       VR,          P                  ,          \        VR,          4      VR,          P                  4       ,          VR,          P                  ,          ,           \        VR,          4      VR,          P                  4       ,          VR,          P                  ,          ,           pWH,
          P                  4       ^ 8X  g   Q hVR	,          ) \        VR,          4      ,          VR
,          P                  ,          VR,          VR
,          P                  ,          ,           VR	,          \        VR,          4      ,          VR
,          P                  ,          ,           p	WY,
          P                  4       ^ 8X  g   Q hVR	,          \        VR,          4      ,          VR,          P                  4       ,          VR
,          P                  ,          VR	,          \        VR,          4      ,          VR,          P                  4       ,          VR
,          P                  ,          ,
          VR,          VR,          P                  4       ,          VR	,          \        VR,          4      ,          VR,          P                  4       ,          ,           VR
,          P                  ,          ,           p
Wj,
          P                  4       ^ 8X  g   Q hVR	,          \        VR,          4      VR,          P                  4       ^,          ,          \        VR,          4      VR,          P                  4       P                  4       ,          ,           ,          VR
,          P                  ,          VR,          ) VR,          P                  4       ^,          ,          ^VR	,          ,          \        VR,          4      ,          VR,          P                  4       ,          VR,          P                  4       ,          ,
          VR	,          \        VR,          4      ,          VR,          P                  4       P                  4       ,          ,
          VR
,          P                  ,          ,           VR,          VR,          P                  4       P                  4       ,          VR	,          \        VR,          4      ,          VR,          P                  4       P                  4       ,          ,           VR	,          \        VR,          4      ,          VR,          P                  4       ^,          ,          ,
          VR	,          \        VR,          4      ,          VR,          P                  4       ^,          ,          ,
          VR
,          P                  ,          ,           pW{,
          P                  4       ^ 8X  g   Q hR# )a  Autolev example calculates the position, velocity, and acceleration of a
point and expresses in a single reference frame::

      (1) FRAMES C,D,F
      (2) VARIABLES FD'',DC''
      (3) CONSTANTS R,L
      (4) POINTS O,E
      (5) SIMPROT(F,D,1,FD)
   -> (6) F_D = [1, 0, 0; 0, COS(FD), -SIN(FD); 0, SIN(FD), COS(FD)]
      (7) SIMPROT(D,C,2,DC)
   -> (8) D_C = [COS(DC), 0, SIN(DC); 0, 1, 0; -SIN(DC), 0, COS(DC)]
      (9) W_C_F> = EXPRESS(W_C_F>, F)
   -> (10) W_C_F> = FD'*F1> + COS(FD)*DC'*F2> + SIN(FD)*DC'*F3>
      (11) P_O_E>=R*D2>-L*C1>
      (12) P_O_E>=EXPRESS(P_O_E>, D)
   -> (13) P_O_E> = -L*COS(DC)*D1> + R*D2> + L*SIN(DC)*D3>
      (14) V_E_F>=EXPRESS(DT(P_O_E>,F),D)
   -> (15) V_E_F> = L*SIN(DC)*DC'*D1> - L*SIN(DC)*FD'*D2> + (R*FD'+L*COS(DC)*DC')*D3>
      (16) A_E_F>=EXPRESS(DT(V_E_F>,F),D)
   -> (17) A_E_F> = L*(COS(DC)*DC'^2+SIN(DC)*DC'')*D1> + (-R*FD'^2-2*L*COS(DC)*DC'*FD'-L*SIN(DC)*FD'')*D2> + (R*FD''+L*COS(DC)*DC''-L*SIN(DC)*DC'^2-L*SIN(DC)*FD'^2)*D3>

z&Test skipped: antlr4 is not installed.zFRAMES C,D,F
VARIABLES FD'',DC''
CONSTANTS R,L
POINTS O,E
SIMPROT(F,D,1,FD)
SIMPROT(D,C,2,DC)
W_C_F>=EXPRESS(W_C_F>,F)
P_O_E>=R*D2>-L*C1>
P_O_E>=EXPRESS(P_O_E>,D)
V_E_F>=EXPRESS(DT(P_O_E>,F),D)
A_E_F>=EXPRESS(DT(V_E_F>,F),D)frame_cframe_fpoint_epoint_ofddcr8   frame_drN)r   r   r   exec
ang_vel_inpos_fromvelaccdiffxr   yr   zsimplify)autolev_inputsympy_inputgr8   w_c_fp_o_ev_e_fa_e_fexpected_w_c_fexpected_p_o_eexpected_v_e_fexpected_a_e_fs               r&   test_output_01rx   _   st   0 656M  .K
A
AiL##AiL1EiL!!!I,/EiLQy\*EiLQy\*E
 gllnQy\^^3!D'l1T7<<>1!I,..@A!D'l1T7<<>1!I,..@AN ",,.!333vgc!D'l*1Y<>>9fQy\^^+,fS4\)!I,..89N ",,.!333fS4\)!D',,.89GfS4\)!D',,.89GHvaglln,vc!D'l*1T7<<>9:;<Y<>>JJN ",,.!333fc!D'l1T7<<>1+<<!!D'l1T7<<>+>+>+@@A BBCI,..Q#wqw||~q003xAdG,QtW\\^;AdGLLNJKvc!D'l*1T7<<>+>+>+@@ABCI,..QQ
 vaglln1133vc!D'l*1T7<<>+>+>+@@Avc!D'l*1T7<<>1+<<= vc!D'l*1T7<<>1+<<= ?@	lnnMMN ",,.!333r=   ) )r   (sympy.functions.elementary.trigonometricr   r   sympy.externalr   sympy.testing.pytestr   sympy.parsing.autolevr   r   disabledr   dirnameabspathrealpath__file__r   r'   r<   rC   rO   rY   rx    r=   r&   <module>r      s    	 ? ( % /	x	 H77??GGOOBGGOOBGG$4$4X$>?@B8*	559=(S4r=   