Is Learning C++/Python for Computational Physics Worth It Over Mathematica?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 4K views
zoltrix
Messages
85
Reaction score
7
hello

I am interested in computational physics at an amateur level
is it worth while learning complex numerical methods with C++ /Python to solve partial differential equations as well as for other physical applications while a software such as mathematica can do the job for you ?
 
Physics news on Phys.org
IMO, if there is a well-established, specialized language targeted at your application, it is easier to use. If cost is not a problem, use Mathematica.
 
FactChecker said:
If cost is not a problem, use Mathematica.
I second this. Mathematica is very versatile and you will be able to get much more out of it.

If you chose to go with Mathematica, I recommend the book Computational Methods for Physics by Joel Franklin.
 
Reply
  • Like
Likes   Reactions: aaroman, vanhees71 and FactChecker
I got Mathematica in 1995 and I continue to use it today for exploring physics.
 
Reply
  • Like
Likes   Reactions: DrClaude, vanhees71 and FactChecker
A less expensive alternative is Python. As Mathematica it provides both computer algebra and numerics.
 
Reply
  • Like
Likes   Reactions: aaroman and Dale
Octave is fun too, it is basically a free version of Matlab
 
Reply
  • Like
Likes   Reactions: aaroman, CalcNerd, FactChecker and 1 other person
For a very pragmatic reason, I use Maple. My employer has a site license, so I get for free the full version on my office desktop, and on my laptop. I have made extensive use of this both professionally and recreationally.
 
Reply
  • Like
Likes   Reactions: vanhees71