Simulations - Programming languages?

In summary, the conversation is about using computer programming to learn about Astronomy. The languages mentioned include Haskell, C++, FORTRAN, and CUDA. The participants also mention the possibility of using Java and inquire about its limitations for scientific simulations. They also discuss the availability of graphics packages for different operating systems.
  • #1
Shaybay92
124
0
I was wondering whether anyone has experience in astronomy simulations. If so, what language do you use and recommend? I've done Haskell and a very small bit of C++... I've been told Python is good, what are your thoughts?

Also are there any good websites that may get me started?

Thanks
 
Astronomy news on Phys.org
  • #2
Shaybay92 said:
I was wondering whether anyone has experience in astronomy simulations. If so, what language do you use and recommend? I've done Haskell and a very small bit of C++... I've been told Python is good, what are your thoughts?

Also are there any good websites that may get me started?

Thanks
Great question! I would love to study the basic of Astronomy via computer programming.
 
  • #3
Same here! Any leads?
 
  • #4
I've seen simulations written in both FORTRAN and C. However, I have come across an N-body simulation written in CUDA, which is based on C. CUDA gives you the ability to program a new Nvidia graphics card, so you can run simulations using the graphics card's GPU to do calculations, instead of using the computer's CPU.
 
  • #5
Funny, I was expecting a whole forum about simulation here.

I started working with Fortran last year, but since I'm a Windows user, I feel like I'm missing on a lot of things. Most graphics packages are for Linux, for example.

This year I'm thinking about changing my direction to Java. Does anyone knows of some kind of limitation for Java simulations? Is it safe to do simulations with it, with scientific purposes?
 

1. What is the purpose of using simulations in programming languages?

Simulations in programming languages are used to model real-world situations and events, allowing scientists and researchers to test different scenarios and predict outcomes in a controlled environment. They also allow for the testing and optimization of complex systems without the need for physical prototypes.

2. What are some common programming languages used for simulations?

Some commonly used programming languages for simulations include MATLAB, Python, Java, and C++. These languages offer powerful mathematical and computational capabilities, making them ideal for creating simulations.

3. How accurate are simulations in programming languages?

The accuracy of a simulation depends on the quality of the model and the underlying assumptions made. With proper calibration and validation, simulations can be very accurate and reliable in predicting real-world outcomes.

4. Can simulations be used for any type of system or phenomenon?

Simulations can be used for a wide range of systems and phenomena, including physical, chemical, biological, and social systems. They are particularly useful for complex systems with many variables and interactions.

5. Are there any limitations to using simulations in programming languages?

One limitation of using simulations is that they are only as accurate as the model and data used. If the model does not accurately reflect the real-world system or if the data used is flawed, the simulation results may not be reliable. Additionally, simulations can be computationally expensive, requiring powerful computers and significant processing time.

Similar threads

  • Astronomy and Astrophysics
Replies
22
Views
1K
  • STEM Career Guidance
Replies
22
Views
3K
  • Astronomy and Astrophysics
Replies
1
Views
1K
  • STEM Academic Advising
Replies
3
Views
784
Replies
4
Views
474
  • Programming and Computer Science
Replies
3
Views
1K
  • Programming and Computer Science
Replies
10
Views
3K
  • Astronomy and Astrophysics
Replies
24
Views
2K
  • Astronomy and Astrophysics
Replies
7
Views
4K
  • Programming and Computer Science
Replies
8
Views
866
Back
Top