a
    $Oæ  ã                   @   s@   d dl mZ d dlZd dlZd dlT dd„ Zdd„ Zdd	„ ZdS )
é    )ÚdivisionN)Ú*c                  C   s(   t  ddtj ¡} tt | ¡t | ¡ƒS )Nç        g       @)ÚrandomZuniformÚmathZpiÚcomplexZcosZsin)Zphz© r   úO/homepages/25/d321765456/htdocs/pub_http_internet/grad-school/python/randc_m.pyÚ
randc_unit   s    r
   c                  C   s&   d} t  d| ¡}t  d| ¡}t||ƒS )NçÌ;fž æ?r   )r   Úgaussr   )ÚsÚreÚimr   r   r	   Úrandc_mean_sq_1   s    r   c                 C   s6   d}|| }t  t| ƒ|¡}t  t| ƒ|¡}t||ƒS )Nr   )r   r   ÚrealÚimagr   )ZmuZsigma_squaredr   Zscaler   r   r   r   r	   Úrandc_normal!   s
    r   )Ú
__future__r   r   r   Z
cplxreal_mr
   r   r   r   r   r   r	   Ú<module>   s   