N-body problem: Difference between revisions
→{{header|Raku}}: "astrometric" instead of "astronomical"
m (→{{header|Wren}}: Minor tidy) |
(→{{header|Raku}}: "astrometric" instead of "astronomical") |
||
Line 5,585:
(formerly Perl 6)
We'll try to simulate the Sun+Earth+Moon system, with plausible
We use a 18-dimension vector <math>ABC</math>. The first nine dimensions are the positions of the three bodies. The other nine are the velocities. This allows us to write the dynamics as a first-temporal derivative equation, since
|