Homework Help Overview
The original poster seeks to simulate multiple objects in space using C++. They mention issues with total energy increasing and objects not following the correct trajectories. The gravitational force and velocity calculations are provided, but the poster is unsure about the correctness of their implementation.
Discussion Character
- Exploratory, Assumption checking, Problem interpretation
Approaches and Questions Raised
- Participants inquire about the number of objects involved and the necessity to consider all pairs for gravitational interactions. They suggest that the original poster may be using the Euler method for integration, which is noted to yield poor results, and recommend exploring better integration methods such as Verlet or Runge-Kutta.
Discussion Status
Some participants have provided guidance on integration methods and have requested more details about the original poster's implementation. There is an ongoing exploration of the issues faced, with no clear consensus reached on the best approach yet.
Contextual Notes
The original poster has expressed difficulty in applying suggested methods to their program and has shared snippets of their code for review. There are concerns raised about the use of certain coding practices, such as memory allocation methods and operator overloading.