Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

nbody finite diff aprox

1 Ansicht (letzte 30 Tage)
Nathan
Nathan am 19 Nov. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I am writing a program in matlab that will simulate the n-body problem.
The simulation is in 3 dimensions.
I want something like this:
run a script and then it prompts the user for how many bodies to simulate, assigns random masses, random velocities, and random positions.
It gets its new position using finite difference approximation.
I know I must use f=-gmM/r^2 and f=mx'' for this.
But in all honesty I have no idea how to start this project off.... Can i get some tips? starting points? is my project doable?

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by