1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    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!

Textbook for physics programming

  1. Dec 12, 2011 #1
    Can anyone recommend me a textbook that teaches you how to write simple physics models? I would like to take everything I learned this year in physics 1 and create a program for it since I'm also a comp sci major.

    This is the best one I found so far but I'm not sure if it's exactly what I need.


    Any others?
  2. jcsd
  3. Dec 14, 2011 #2
    Do you have a programming language preference?

    If you are also a computer science major and have experience programming, you may want to pick a book that skips basic programming concepts, and is more about general algorithms. For example, the book you linked to is nearly half about basic C++! That may be a waste of time if you have already had a basic programming course.
  4. Dec 14, 2011 #3
    Oops, I thought I had mentioned it - I'm looking for books in C++ specifically. I want to learn C++ while practicing physics - 2 birds 1 stone o:). I know nothing of C++, only Java and Python. So if what you say is true (that half of the book is a tutorial on C++), that doesn't sound like a bad idea at all. Do you have the book?

    Someone recommended me Physics for Game Developers. It looks pretty good too, just what I wanted (basic graphic mechanics), but apparently it doesn't actually teach C++.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook