Authors: Hans Petter Langtangen
Example-oriented text with all applications taken from science and engineering
Aimed at newcomers to programming and Python, but proved to be useful for professionals too
All examples are accompanied by complete program codes, which can be modified to the reader's needs
Covers both Matlab-style "simple" programming and object-oriented programming
Demonstrates how Python can be an alternative to Matlab in scientific computing
The book serves as a first introduction to computer programming of scientific applications, using the high-level Python language. The exposition is example and problem-oriented, where the applications are taken from mathematics, numerical calculus, statistics, physics, biology and finance. The book teaches "Matlab-style" and procedural programming as well as object-oriented programming. High school mathematics is a required background and it is advantageous to study classical and numerical one-variable calculus in parallel with reading this book. Besides learning how to program computers, the reader will also learn how to solve mathematical problems, arising in various branches of science and engineering, with the aid of numerical methods and programming. By blending programming, mathematics and scientific applications, the book lays a solid foundation for practicing computational science.
Table of contents
Front Matter
Pages i-xxxi
Computing with Formulas
Pages 1-49
Loops and Lists
Pages 51-89
Functions and Branching
Pages 91-147
User Input and Error Handling
Pages 149-225
Array Computing and Curve Plotting
Pages 227-332
Dictionaries and Strings
Pages 333-408
Introduction to Classes
Pages 409-487
Random Numbers and Simple Games
Pages 489-566
Object-Oriented Programming
Pages 567-643
Back Matter
Pages 645-922
下载地址: