What programming languages are used in computational astrophysics?

Click For Summary
SUMMARY

FORTRAN 95 and C++ are the primary programming languages used in computational astrophysics. C++ is increasingly favored over FORTRAN due to its modern features and extensive libraries, such as boost::math, which support advanced computational tasks. While FORTRAN remains relevant, particularly for legacy code, C++ is essential for new developments in the field. Java is mentioned but is not as critical as C++ for computational astrophysics.

PREREQUISITES
  • Understanding of FORTRAN 95 programming
  • Proficiency in C++ programming
  • Familiarity with boost::math libraries
  • Basic knowledge of computational astrophysics concepts
NEXT STEPS
  • Research advanced C++ features and libraries for scientific computing
  • Explore legacy codebases written in FORTRAN
  • Learn about the role of Java in scientific applications
  • Investigate the latest developments in computational astrophysics software
USEFUL FOR

Students and professionals in astrophysics, software developers in scientific computing, and anyone interested in the programming languages relevant to computational astrophysics.

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?
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
8
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 26 ·
Replies
26
Views
4K
  • · Replies 27 ·
Replies
27
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K