Program in JAVA which simulates the solar system

Click For Summary
SUMMARY

The discussion centers on creating a JAVA program that simulates the solar system using Beeman's algorithm. The user seeks assistance in decomposing vectors of velocity, acceleration, and position into their x and y components. It is established that vectors can be expressed in either rectangular or polar form, with the x and y components readily available in rectangular form, while polar form requires trigonometric calculations to derive these components.

PREREQUISITES
  • Understanding of JAVA programming language
  • Familiarity with Beeman's algorithm for numerical integration
  • Basic knowledge of vector mathematics
  • Proficiency in trigonometry for converting polar coordinates
NEXT STEPS
  • Research JAVA libraries for physics simulations
  • Learn about vector decomposition in both rectangular and polar forms
  • Explore numerical integration techniques beyond Beeman's algorithm
  • Study the principles of celestial mechanics for accurate solar system simulation
USEFUL FOR

JAVA developers, physics enthusiasts, and anyone interested in programming simulations of celestial systems.

srose
Messages
4
Reaction score
0
Hi
I need to write a program in JAVA which simulates the solar system. I'll be using the Beeman's algorithm seen here: http://en.wikipedia.org/wiki/Beeman%27s_algorithm"

My question is that if I have the vectors for : velocity, acceleration and position how do I decompose them into there x and y components? I have forgotten a lot about the basics of vectors.

Please help
thanks
 
Last edited by a moderator:
Technology news on Phys.org


srose:
Vectors are expressed in rectangular form or polar form for the 2-D variety. Which do you have? In the rectangular form, the x and y components are given. In polar form, where a magnitude and an angle are given, simple trigonometry produces the x an y components.
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
6
Views
2K
Replies
18
Views
3K