add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
a

Z��^c@s`dZddlmZmZmZmZdZGdd�de�Z	Gdd�de�Z
dd	�Zed
kr\e�e�dS)a�       turtle-example-suite:

        tdemo_planets_and_moon.py

Gravitational system simulation using the
approximation method from Feynman-lectures,
p.9-8, using turtlegraphics.

Example: heavy central body, light planet,
very light moon!
Planet has a circular orbit, moon a stable
orbit around the planet.

You can hold the movement temporarily by
pressing the left mouse button with the
mouse over the scrollbar of the canvas.

�)�Shape�Turtle�mainloop�Vec2Dic@s$eZdZdd�Zdd�Zdd�ZdS)�GravSyscCsg|_d|_d|_dS)Nrg{�G�z�?)�planets�t�dt)�self�r
�2/usr/lib64/python3.9/turtledemo/planet_and_moon.py�__init__szGravSys.__init__cCs|jD]}|��qdS)N)r�init)r	�pr
r
rr
s
zGravSys.initcCs6td�D](}|j|j7_|jD]}|��q"qdS)Ni')Zrangerrr�step)r	Zirr
r
r�start s
z
GravSys.startN)�__name__�
__module__�__qualname__rr
rr
r
r
rrsrc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�StarcCsTtj||d�|��||_|�|�||_|j�|�||_|�	d�|�
�dS)N)�shapeZuser)rrZpenup�m�setpos�vrZappend�gravSysZ
resizemodeZpendown)r	rZxrrrr
r
rr's

z
Star.__init__cCs,|jj}|��|_|jd||j|_dS)N��?)rr�acc�ar�r	rr
r
rr
1s
z	Star.initcCsRtdd�}|jjD]:}||kr|��|��}|t|jt|�d|7}q|S)Nri)�Vecrr�pos�GrZabs)r	r�planetrr
r
rr5s
 zStar.acccCsj|jj}|�|��||j�|jj�|�dkrJ|�|�|jjd��|�	�|_
|j||j
|_dS)Nr)rrrrrrZindexZ
setheadingZtowardsrrrr
r
rr<s
z	Star.stepN)rrrrr
rrr
r
r
rr&s
rcCs|t�}|��|���dd�|��|��|�d�|�d�|��|�	dd�|�
�|��}|��|�	dd�|�
�|��}td�}|�
|d�|�
|d�|���d|�|���d	d�t�}td
tdd�tdd�|d�}|�d
�|�d�|��tdtdd�tdd�|d�}|�d�|�d�td	tdd�tdd�|d�}|�d�|�d�|��|��dS)NriiZi�ZcompoundZorangeZbluer!ii@Bg��circleZyellowg�������?i�0i�i�Zgreeng�������?i�i'rzDone!)rZresetZ	getscreenZtracerZhtZpuZfdZltZ
begin_polyr"Zend_polyZget_polyrZaddcomponentZregister_shaperrrZcolorZ	shapesizeZpencolorr
r)ZsZm1Zm2ZplanetshapeZgsZsunZearthZmoonr
r
r�mainFsD







r#Z__main__N)
Z__doc__Zturtlerrrrrr Zobjectrrr#rr
r
r
rZ<module>s '