
FMM N-Body Gravity Sim
A simple task prompt with large hidden complexity, testing general knowledge and coding skills.
Prompt
Design a 2d Nbody gravity simulation to run on an nvidia gpu. Use the fast multiple method. Return an explanation of your approach and python pseudo code.