This program, by Liaket Ali in Leicester, demonstrates the motion of two bodies under the influence of gravity. It uses Newton's laws of Force and Motion to plot the path of two objects The listing can show such things as the capture of one astronomical body by another, orbits of satellites and the behaviour of binary stars - it all depends on the data fed to it. When the program is run you are asked to press Y if you wish to input data. Any other key and the default data is used. This demon strates the orbits between the Earth and Moon. The red line is the path of the moon, If you pressed Y then try the data provided before entering your own: it will give you an idea of what is required | | | Anti-gravity | Mass | 100 | 50 | 100 | 100 | Velocity | 149 | 298 | 4 | 4 | Acceleration | 0 | 180 | -45 | 135 | X | 320 | 320 | 50 | 200 | Y | 170 | 100 | 150 | 30 | Gravity | 10 | | -7 | | This is a binary star simulation One star is large: than the other Each star has the required velocity for a circular orbit around a common centre of gravity The second group of figures show what happens when the force of gravity is repulsive instead of attractive It shows two equal bodies approaching each other - both bodies then move away fiom each other due to the effects of anti-gravity. |
The angles cue in degrees, 0 being east. The X and Y co-ordinates refer to the initial screen positions of the two bodies. The value !or X should be between 0 and 640; Y should be between 0 and 270 Plotting is slow as Basic has several hundred calculations to perform. AA#27 ★ AMSTRAD CPC ★ DOWNLOAD ★ |
CPCrulez[Content Management System] v8.7-desktop/c Page créée en 428 millisecondes et consultée 575 foisL'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |
|
|
|