1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
  2. Support PF! Reminder for those going back to school to buy their text books via PF Here!
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Book on python for physics

  1. Apr 6, 2014 #1
    Hello,

    I would like to self learn python for my physics degree, but I don't really have an idea where to start. Could anyone recommend a good book out there for beginners (zero experience with programming)?

    I don't want anything too comprehensive; that's for comp sci majors. I'm really just looking for a book with a focus on the application of python for physical simulations, solving equations, etc.

    thanks
     
  2. jcsd
  3. Apr 7, 2014 #2
    I don't know of any books on the subject. If you have zero experience, you should start with learning to program. You can do stuff like code academy to learn the syntax (http://www.codecademy.com/, you won't learn how to code with these tutorials). Then you probably should work through some proper python tutorial or take a course on it if possible. When I was getting into python, I did this tutorial http://learnpythonthehardway.org/book/.
    I didn't like it that much, but many people are saying it's great so you can look into it I guess. It requires you to learn basics of command line interface too.

    When you know how to code, you can start looking into numpy/scipy library http://www.scipy.org/
    It's probably the biggest and most widely used scientific library for python. For learning scipy you can google some material (like http://scipy-lectures.github.io/intro/index.html).

    Then of course there are libraries like pygame which are nice for making little physics simulations/games (collisions, planetary systems) with some (2D) graphics.

    But you really need to learn some programming first (not theory, just how to build a program), and the fastest way to learn that is writing programs.
     
  4. Apr 7, 2014 #3
    Last edited by a moderator: May 6, 2017
  5. Apr 8, 2014 #4
    Last edited by a moderator: May 6, 2017
  6. Apr 12, 2014 #5
    Thanks for the suggestions,

    The book by Langtangen looks fairly interesting with good reviews on amazon so I think I'll try to start with that.
     
  7. Apr 12, 2014 #6
    Last edited by a moderator: May 6, 2017
  8. Apr 13, 2014 #7
    Ah, looked over the sample chapters and this seems to suit my needs even better because it includes modelling, animations, etc. I think I'll stick to this one.
     
    Last edited by a moderator: May 6, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Book on python for physics
  1. Physics Books (Replies: 14)

  2. Physics book (Replies: 2)

Loading...