Best way to learn computer language for physics major

In summary, it seems that being able to program is a very valuable tool to a student studying physics. I'm transferring from a CC to a four year soon, and noticed a lot of the universities I've been accepted to have had their sophomores take some programming this year. There are many resources available to help self-learn programming, such as books and online courses.
  • #1
Crush1986
207
10
It seems being able to program is a very valuable tool to a student studying physics (about to be a 3rd year). I'm transferring from a CC to a four year soon. I noticed a lot of the universities I've been accepted to have had their sophomores take some programming this year.

Over the summer I'm planning on doing some self study and programming is one of the things I'd like to tackle. I'm a bit torn though on what and how I should study and what will give me the most benefit for my time.

In order to receive the best advice I guess I should say that I have very limited experience with C++. A few years ago I somehow got into it for a few weeks and wrote very simple programs (guessing games mostly for my girlfriend, calculator, etc.).

So, in short, what do you feel would be my best route to enlightenment that would help me in my studies of physics.

I thank anyone in advance for their reply and time.
 
Technology news on Phys.org
  • #3
Greg Bernhardt said:
Simply find a C++ primer book like https://www.amazon.com/dp/0321714113/?tag=pfamazon01-20

Or this one:

https://www.amazon.com/dp/0321992784/?tag=pfamazon01-20

I've never seen this book myself, but it has good reviews on stackoverflow and amazon.com, and I have some of Stroustrup's other books which are very well written. He is the original inventor of C++ and is probably the leading authority on it. Unlike his other books, this one is intended for people with no programming experience.

The comments I've seen about Lippman are that it's more suitable for someone who already knows something about programming in another language. So maybe use the two in tandem: Stroustrup to get started, and Lippman to go deeper.
 
Last edited by a moderator:
  • Like
Likes Greg Bernhardt
  • #4
Great guys thanks a lot. It seems like it's just a good idea to just work through a good text then. I'll check these suggestions out and see which appeals!
 
  • #5
Can we trade? Can you tell a CS major how to get rolling in physics with emphasis on optics and knowledge of the Quantum side of optics? Thats what interests me.

Math is the hard part for most, but not for a physics major. Zoom into discrete math, logic, probabilility, etc. to prep your thinking for life outside the continuum, and then learn a high level language like python along with whatever your work is in C. You want to see the common elements in both, and then when you have to deal with the various new languages you encounter for this or that science software suite, you will learn fast
 
  • #6
Heh, I don't even think I'm near that level of QM. It's only been in my life for about two months. Looks like my senior year most universities have 2 QM classes that have a lot of generality.

For studying physics and having a 4.0 in my major's classes. All I have done is obtained 2-3 decent textbooks (mine are Halliday & Resnik, Kleppner and Kolenkow, Young & Freedman) and pretty much done every problem I could get my hands on. Read every single chapter (It seems almost no one does this for some reason) and raised any question that came to mind, either here or in office hours. I would also watch a second lecture from MIT's OCW if I was confused (Walter Lewin was amazing for me). It's a long arduous process but it has left me with about as good a knowledge of the first two years of physics as I could have hoped for.
 
  • #7
Thanks for your reply. I am not planning on being anywhere near the QM gurus on this site... Even if I have the brains I don't have the time. But unfortunately, the future of computer science has a great deal to do with light, and QM is the theory that really describes light. So I'm stuck looking around for some kind of toolkit that is going to give me enough insight without doing a 6 year physics degree to understand the deeper levels of it.
 

Related to Best way to learn computer language for physics major

1. What is the best computer language to learn for a physics major?

The best computer language to learn for a physics major depends on the specific needs and interests of the individual. However, some popular options include Python, C++, and Fortran.

2. Do I need to know computer language as a physics major?

While it is not a requirement to know computer language as a physics major, it can greatly benefit your understanding and application of physics principles. Many scientific research and data analysis projects utilize computer programming, and having this skill can make you a more competitive and versatile candidate in the job market.

3. How long does it take to learn a computer language as a physics major?

The time it takes to learn a computer language as a physics major varies depending on the individual's prior experience and dedication to learning. With consistent practice and dedication, it is possible to learn the basics of a computer language in a few months.

4. What resources are available for learning computer language as a physics major?

There are many resources available for learning computer language as a physics major, such as online tutorials, textbooks, and coding bootcamps. Your university may also offer courses specifically focused on using computer language for physics applications.

5. Is it necessary to have a strong background in math to learn computer language as a physics major?

While having a strong background in math can certainly be helpful in learning computer language as a physics major, it is not a requirement. Many programming languages have built-in functions and libraries that can assist with mathematical calculations, and with practice and patience, anyone can learn to code regardless of their math background.

Similar threads

  • Programming and Computer Science
Replies
15
Views
1K
  • Programming and Computer Science
Replies
8
Views
918
  • Programming and Computer Science
Replies
11
Views
1K
  • Programming and Computer Science
Replies
15
Views
2K
  • Programming and Computer Science
Replies
10
Views
3K
  • Programming and Computer Science
2
Replies
54
Views
3K
  • STEM Academic Advising
Replies
10
Views
2K
  • Programming and Computer Science
2
Replies
59
Views
7K
  • Programming and Computer Science
Replies
28
Views
6K
  • STEM Academic Advising
Replies
2
Views
1K
Back
Top