| Thread Closed |
Learn Python? |
Share Thread | Thread Tools |
| Jan20-09, 04:06 AM | #1 |
|
|
Learn Python?
Hello, I have recently become interested in computational physics. I know a good deal of Mathematica. Recently I have heard great things about Python. My questions are:
1) How useful is Python in computation? 2) Would there be a better program to learn instead of Python for computation? Any additional comments would be appreciated. |
| Jan20-09, 05:13 AM | #2 |
|
|
|
| Jan20-09, 06:45 AM | #3 |
|
|
If would have to pick "a couple" of languages to work with python would be one of them.
|
| Jan20-09, 12:22 PM | #4 |
|
|
Learn Python?Also, can someone tell me: 1)Two or more benefits of Python over Mathematica 2)Two or more disadvantages of Python over Mathematica |
| Jan20-09, 12:57 PM | #5 |
|
|
*: Python is an actual programming language. Mathematica, for all its wonderful uses, really isn't a serious language. Object orientation, for instance, is natural and easy to use in Python; although OOP is possible in Mathematica, it's ugly and cumbersome in an ungodly way. *: Python is a much more powerful language. *: It's free. *: It's more popular than Mathematica. *: It's got a much, much wider focus. For instance, Python will handle all of the numerical work Mathematica can do but can also do nifty, network-focused things with your data once it's been obtained. This is pretty much impossible with Mathematica. *: Plotting in Python is poor in comparison to Mathematica, especially to version 7.0. |
| Jan21-09, 01:15 AM | #6 |
|
|
|
| Jan21-09, 04:42 AM | #7 |
|
|
Here's a yet another reason to learn Python! Check the open source tool Sage http://www.sagemath.org/
It is a python-based tool that integrates various (powerful) open source tools for numerical computations, statistics, symbolic computations, number theory, algebra(as diverse as group theory, linear algebra, representation theory, commutative algebra, and algebraic geometry), ... The integration of these tools under Python is exceptional in my opinion! There's a very useful "notebook" a la Mathematica! But much more powerful I'd say! It got not only great plotting capabilities, but also interactive ones, including Java 3D, take a look at http://wiki.sagemath.org/interact |
| Jan22-09, 09:54 AM | #8 |
|
|
Is there a reason why I would learn Python over Fortran?
|
| Jan22-09, 10:33 AM | #9 |
|
|
|
| Jan22-09, 11:05 AM | #10 |
|
|
|
| Jan22-09, 02:11 PM | #11 |
|
|
|
| Jan22-09, 02:43 PM | #12 |
|
|
How about mathlab vs phython,which one is the best for a physics major?
|
| Jan22-09, 02:48 PM | #13 |
|
|
. Comparing languages and "stating" what is needed is always a bit arbitrary (at best), but in "general terms" when learning to do things and so forth Fortran isn't quite as useful as Python (unless everything in your field is written in Fortran for some reason or something similar). Fortran has its uses and Python its own, unless you have something in mind where you especially need something Fortran does very well Python is an animal would recommend. Not to downplay good old Fortran, I still need it .
|
| Jan22-09, 04:18 PM | #14 |
|
|
|
| Jan22-09, 04:19 PM | #15 |
|
|
Python is more of a general purpose language... with a lot of useful functions imported through libraries and modules... and it's free and open source. For physics, there is this useful library http://vpython.org/ Note that Python (via the optimized numerical linear algebra library NumPy) has many Matlab-like functions and syntax. If I were you, I'd learn both. (One thing Python can do (that many other languages can't do as easily) is interact with other programs... I've written Python (and Perl) programs that write Maple code... then a script can start Maple and execute it. If needed, Python can parse the output of the Maple program and do something else with it... e.g. send post-processed data to another program [like gnuplot].) |
| Thread Closed |
| Thread Tools | |
Similar Threads for: Learn Python?
|
||||
| Thread | Forum | Replies | ||
| GTK and Python | Programming & Comp Sci | 2 | ||
| What to learn in classical mechanics?How to learn it well? | Classical Physics | 0 | ||
| Python: (a,b,c) vs [a,b,c] | Computing & Technology | 6 | ||
| Python rk4 | Programming & Comp Sci | 0 | ||