Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
Ë
â{|j ã ó~ — d Z ddlmZmZmZmZ dZ G d„ de« Z G d„ de« Z
d„ Zed k( r e« e« y
y
)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ÚVec2Dé c ó — e Zd Zd„ Zd„ Zd„ Zy)ÚGravSysc ó. — g | _ d| _ d| _ y )Nr g{®Gáz„?)ÚplanetsÚtÚdt)Úselfs ú3/usr/lib64/python3.12/turtledemo/planet_and_moon.pyÚ__init__zGravSys.__init__ s € ؈ŒØˆŒØˆ�ó c óF — | j D ] }|j « Œ y )N)r Úinit)r Úps r r zGravSys.init s € Ø—”ˆAØ
�F‰F�Hñ r c ó¤ — t d« D ]B }| xj | j z
c_ | j D ] }|j « Œ ŒD y )Ni' )Úranger r
r Ústep)r Úir s r Ústartz
GravSys.start s9 € Ü�u–ˆAØ�FŠF�d—g‘gÑ�FØ—\”\�Ø—‘•ñ "ñ r N)Ú__name__Ú
__module__Ú__qualname__r r r © r r r r s „ òòór r c ó$ — e Zd Zd„ Zd„ Zd„ Zd„ Zy)ÚStarc ó — t j | |¬« | j « || _ | j |« || _ |j j | « || _ | j d« | j « y )N)ÚshapeÚuser)r r ÚpenupÚmÚsetposÚvr ÚappendÚgravSysÚ
resizemodeÚpendown)r r$ Úxr&