What programming languages are used in computational astrophysics?

AI Thread Summary
FORTRAN 95 is recommended for those studying astrophysics, but C++ is considered more crucial for computational astrophysics. Most new code is developed in C++, which offers advanced features and libraries, such as boost::math, that are not available in FORTRAN. C++ is viewed as essential for industrial applications, akin to knowing English. Additionally, there is a question about the relevance of Java in computational astrophysics, indicating interest in multiple programming languages within the field.
abbeynewton
Messages
31
Reaction score
0
Hi, just wanted to know which version of FORTRAN is best to learn for one studying astrophysics...and whether C++ is of any importance in computational astrophysics...Thanks
 
Physics news on Phys.org
You should be familiar with FORTRAN 95.

Also I'd argue that C++ is more important than FORTRAN for people interested in computational astrophysics. All of the new code is being written in C++ rather than FORTRAN, because everything you can do in FORTRAN you can do in C++ whereas the reverse is not true. There is incredible cutting edge stuff in C++ that doesn't exist in FORTRAN. (look at the boost::math libraries)

Also knowing C++ is like knowing English. It's the standard language for industrial applications.
 
thanks, one more question, is java also used in computational astrophysics?
 
I’ve been looking through the curricula of several European theoretical/mathematical physics MSc programs (ETH, Oxford, Cambridge, LMU, ENS Paris, etc), and I’m struck by how little emphasis they place on advanced fundamental courses. Nearly everything seems to be research-adjacent: string theory, quantum field theory, quantum optics, cosmology, soft matter physics, black hole radiation, etc. What I don’t see are the kinds of “second-pass fundamentals” I was hoping for, things like...
TL;DR Summary: I want to do a PhD in applied math but I hate group theory, is this a big problem? Hello, I am a second-year math and physics double major with a minor in data science. I just finished group theory (today actually), and it was my least favorite class in all of university so far. It doesn't interest me, and I am also very bad at it compared to other math courses I have done. The other courses I have done are calculus I-III, ODEs, Linear Algebra, and Prob/Stats. Is it a...
Back
Top