| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/turtledemo/__pycache__/ |
Upload File : |
R
>lqj= c � � Q s ] QHGsGsGsGs ]s Q Q\2 s Q Q\2 s
Q s\Q6X c \ 2 \ 2 P! P! )a� turtledemo/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�Vec2Dc �4 ` � \ sQ s]s n Q sQ sQ sQsU sP! )�GravSysc �2 � , U m ] U m QU m P! )� g{�G�z�?)�planets�t�dt)�selfs &�/C:\Python315\\Lib\turtledemo\planet_and_moon.py�__init__�GravSys.__init__ s � ���������� c �P � U O F D oUO 2 J P! )N)r �init)r �ps & r
r �GravSys.init s � ����A�
�F�F�H� r c � � [ Q 2 F DJ oU 9O U O *
tm U O F D oUO 2 J JL P! )i'