Info

この質問は閉じられています。 編集または回答するには再度開いてください。

nbody finite diff aprox

2 ビュー (過去 30 日間)
Nathan
Nathan 2013 年 11 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by