o
    hR                     @   s,   d dl Zd dlmZ d dlmZ dd ZdS )    N)assert_allclosec            
      C   s   dd } dd }dd }dd }| |||g}g d	}g d
}t ddt j }t dt j}t ||\}}t|||D ]\}	}}tt|||||	||ddd| d| dd q<d S )Nc                 S   s   dt dt j  S )N      ?   )npsqrtpithetaphi r   \/var/www/html/scripts/venv/lib/python3.10/site-packages/scipy/special/tests/test_sph_harm.pyY00   s   z!test_first_harmonics.<locals>.Y00c                 S   0   dt ddt j   t d|   t | S )Nr         y             r   r   r   expsinr   r   r   r   Yn11      0z"test_first_harmonics.<locals>.Yn11c                 S   s   dt dt j  t | S )Nr   r   )r   r   r   cosr   r   r   r   Y01   s   z!test_first_harmonics.<locals>.Y01c                 S   r   )Ng      r   r   y              ?r   r   r   r   r   Y11   r   z!test_first_harmonics.<locals>.Y11)r   r   r   )r   r   r   r   r   r   gV瞯<zY^_z
 incorrect)rtolatolerr_msg)r   linspacer   meshgridzipr   scsph_harm)
r   r   r   r   harmsmnr	   r
   harmr   r   r   test_first_harmonics   s"   r'   )numpyr   numpy.testingr   scipy.specialspecialr!   r'   r   r   r   r   <module>   s    