Binary Orbit Simulation

Arithmetic precision:* 1024 bits
Number of cycles: 30 000 000
Seconds per cycle: 0.0001
Mass of each object: 2e13 kg.
Radius of each object: 20 m.
Initial speed of each object: 1 m/s
Interacting law: Newton's law of gravity

*GMP is used for floating point numbers. Precision is compromised by math.h functions atan2, sin and cos. If you have C++ implementation of CORDIC or other fast algorithm, you can share it here.

See Binary star at Wikipedia.

More simulations

Коментари