Momentum Conservation

Arithmetic precision:* 512 bits
Number of objects: 5
Number of cycles: 1 250 000
Seconds per cycle: 0.005
Mass of big, middle, small objects: 1e-8 kg., 5e-9 kg., 5e-10 kg.
Radius of big, middle, small objects: 60 m., 30 m., 5m.
Initial speed of big colored object: 0.5 m/s
Initial speed of big dark object: 1 m/s
Coefficient of restitution: 1 (perfectly elastic)
Interacting law: Momentum, 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.

More simulations

Коментари