Programming courses useful for physics majors?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
danielle
Messages
7
Reaction score
1
I'm a physics undergrad and was wondering which programming classes are most useful/beneficial; python, linux, c++, java, etc...
 
Physics news on Phys.org
What does your departmental program specify as the required computer programming course or courses? Beyond that, I am only guessing that ANY and ALL programming languages or other such courses could be useful for a Physics student.

Your department MUST have a computer programming course requirement for undergraduate degree in Physics! At least one introductory course.
 
symbolipoint said:
What does your departmental program specify as the required computer programming course or courses? Beyond that, I am only guessing that ANY and ALL programming languages or other such courses could be useful for a Physics student.

Your department MUST have a computer programming course requirement for undergraduate degree in Physics! At least one introductory course.
the phys dept only requires me to take c++, but i wanted to see what else would be useful in the long run, even the ones that aren't required. Thanks for the reply anyways!
 
C, C++, Fortran, and Python should be the most useful for you. After you've got some experience with once or more of those, I'd recommend learning how to use OpenCL and possibly CUDA for GPU accelerated computation. Individual graphics cards these days are as powerful as top tier supercomputers from the early 2000s, so it pays to know how to utilize them.
 
  • Like
Likes   Reactions: danielle
danielle said:
the phys dept only requires me to take c++, but i wanted to see what else would be useful in the long run, even the ones that aren't required. Thanks for the reply anyways!
Vanadium 50 said:
I say this all the time, so why not say it again? I think you will find it much more useful to learn programming than a programming language.
Review, practice, and improve yourself at programming in your C++, and then later, you could decide better which other language to learn.