Programming in theoretical physics

In summary, it is important to learn how to program in order to pursue theoretical physics in the future. Depending on the type of physics you want to pursue, this may be a requirement.
  • #1
rbnphlp
54
0
Ok , Programming and me haven't been the best of friends . It kinds of irritate me , although I can follow the logic of what's going on , I find it very hard to come up with the code , I make a error and find it impossible to correct the error .What I have been learning so far is MAthematica , I can do the basic -average stuff [ manipulate lists, create functions and so on ] but now with my project looming I can't even make head or tails of what to do .. One reason maybe that I didnt do any homework set and kind of relied on my friends too much

Im just wondering , how important is programming in the future .. I was planning to do research in theoretical physics , I am pretty decent at maths and physics , but mathematica is like my worst nightmare right now ..Is there any way around this programming , in my later years if I were to work as a physicist ..

Cheers for reading
 
Physics news on Phys.org
  • #2
Theoretical physics is synonymous with programming. Very few theoretical physicists spend 100% of the time just writing maths on a board. If you want to avoid it later, become an experimentalist.
 
  • #3
rbnphlp said:
Im just wondering , how important is programming in the future .. I was planning to do research in theoretical physics

Depends on the type of physics. There are physicists that hardly ever touch a computer, and there are physicists that not only can program in Mathematica, they can and do program Mathematica from scratch.

The problem with not programming is not so much graduate school, the problem is after graduate school. Most theoretical physics Ph.D.'s end up getting programming jobs, and your job prospects decline markedly if you can't program.
 
  • #4
JesseC said:
Theoretical physics is synonymous with programming. Very few theoretical physicists spend 100% of the time just writing maths on a board. If you want to avoid it later, become an experimentalist.

You might find that at least basic programming skills are also required for many experimentalists. Once you've acquired some terrabytes of data from your experiements... what are you going to do with them?

To OP: If you can't program, you need to learn it if you want to go into theory. You can only shoot yourself in the foot if you are not able to do that. If you're in over your head, start at a more basic level and progess step by step (e.g., in your case, get the Mathematica book and start at the beginning...). "Understanding" a program and coming up with one yourself are entirely different things until a late level in coding proficiency.
 
  • #5
cgk said:
You might find that at least basic programming skills are also required for many experimentalists. Once you've acquired some terrabytes of data from your experiements... what are you going to do with them?

To OP: If you can't program, you need to learn it if you want to go into theory. You can only shoot yourself in the foot if you are not able to do that. If you're in over your head, start at a more basic level and progess step by step (e.g., in your case, get the Mathematica book and start at the beginning...). "Understanding" a program and coming up with one yourself are entirely different things until a late level in coding proficiency.

What if , I master in say maths , rather than theretical physics , does it change anything ..Im talking like abstract algebra
 
  • #6
rbnphlp said:
What if , I master in say maths , rather than theretical physics , does it change anything ..Im talking like abstract algebra

Probably not. Even if you major in math, depending on where you are studying, you may still be required to take programming or computer science courses.

At any rate, I would presume that you are intending to pursue further graduate studies, in which case your employment prospects are greatly improved if you develop at least some proficiency in programming, since in the private sector most math graduates tend to work in areas where some programming is required -- and this is coming from someone who graduated in math, and pursued graduate studies in statistics.

If you are having difficulties with programming, I would follow the advice of the other posters and start at the beginning and practice programming exercises, with some good books on Mathematica.
 
  • #7
cheers for the advice ..
 

1. What is the importance of programming in theoretical physics?

Programming is an essential tool in theoretical physics as it allows researchers to simulate and model complex physical systems that are not easily solvable using traditional mathematical methods. This helps in gaining a better understanding of the underlying principles and behavior of these systems.

2. Which programming languages are commonly used in theoretical physics?

Some of the commonly used programming languages in theoretical physics include Python, Mathematica, and Fortran. These languages are chosen for their ability to handle complex mathematical operations and their efficient data handling capabilities.

3. Do I need to have a strong background in programming to understand theoretical physics?

While a strong background in programming can be helpful, it is not a prerequisite for understanding theoretical physics. Basic knowledge of programming concepts and the ability to write simple codes is usually sufficient for most theoretical physics research.

4. How does programming aid in the development of new theories in physics?

Programming allows for the quick and efficient testing of different hypotheses and theories in physics. It also helps in analyzing large amounts of data and identifying patterns and trends that may lead to new discoveries and theories.

5. Can programming errors affect the accuracy of theoretical physics simulations?

Yes, programming errors can have a significant impact on the accuracy of theoretical physics simulations. Therefore, it is essential for researchers to carefully debug and test their codes to ensure the validity of their results.

Similar threads

  • STEM Career Guidance
Replies
23
Views
816
Replies
5
Views
653
  • STEM Career Guidance
2
Replies
37
Views
6K
  • STEM Career Guidance
Replies
4
Views
2K
Replies
23
Views
3K
  • STEM Career Guidance
Replies
2
Views
1K
  • STEM Career Guidance
Replies
18
Views
6K
  • STEM Career Guidance
Replies
5
Views
2K
Replies
26
Views
1K
  • STEM Career Guidance
Replies
14
Views
3K
Back
Top