
    -i.                     (   S SK r S SKJrJr  S SKrS SKJrJrJ	r	  S SK
Jr  \ R                  R                  S\\\	/5      S 5       rS r\ R                  R                  S\\\	/5      S	 5       r\ R                  R                  S\\\	/5      S
 5       rg)    N)assert_allcloseassert_)RK23RK45DOP853)dop853_coefficientssolverc                     [        [        R                  " U R                  5      SSS9  [        [        R                  " U R                  SS9U R
                  SS9  g N   gV瞯<)rtol)axisg+=)r   npsumBAC)r	   s    U/var/www/html/venv/lib/python3.13/site-packages/scipy/integrate/_ivp/tests/test_rk.pytest_coefficient_propertiesr      s:    BFF688$ae4BFF688!,fhhUC    c                      [        [        R                  " [        R                  5      SSS9  [        [        R                  " [        R
                  SS9[        R                  SS9  g r   )r   r   r   r   r   r   r    r   r   "test_coefficient_properties_dop853r      sF    BFF.00115ABFF.00q9')) r   solver_classc                 ,   SnU " S SS/SUS9nUR                  5         UR                  UR                  U5      nUR                  [        R
                  " U/5      -
  n[        [        R                  " U5      [        R                  " U5      :  5        g )N皙?c                     U$ )Nr   tys     r   <lambda>'test_error_estimation.<locals>.<lambda>   s    qr   r   r   
first_step)step_estimate_errorKr    r   expr   abs)r   r%   r	   error_estimateerrors        r   test_error_estimationr,      sp    D.!aS!EF
KKM++FHHd;NHHrvvtf~%EBFF5MBFF>223r   c                     SnU " S SS/SUS9nUR                  5         UR                  UR                  US/S9n[        R                  " U5      (       d   eg )Nr   c                     SU-  $ )N              ?r   r   s     r   r!   /test_error_estimation_complex.<locals>.<lambda>"   s    rAvr   r   r/   r   r#   )scale)r%   _estimate_error_normr'   r   	isrealobj)r   hr	   err_norms       r   test_error_estimation_complexr6      sW    A-q2$aHF
KKM**688Qqc*BH<<!!!!r   )pytestnumpy.testingr   r   numpyr   scipy.integrater   r   r   scipy.integrate._ivpr   markparametrizer   r   r,   r6   r   r   r   <module>r>      s     2  . . 4 D$#78D 9D
  $f)=>4 ?4 $f)=>" ?"r   