The second edition features new material, reorganization of text, improved examples and software tools, updated information, and correction of errors. This is mainly the result of numerous eager readers around the world who have detected misprints, tested program examples, and suggested alternative ways of doing things. I am greatful to everyone who has sent emails and contributed with improvements. The most important changes in the second edition are brie?y listed below. Already in the introductory examples in Chapter 2 the reader now gets a glimpse of Numerical Python arrays, interactive computing with the IPython shell, debugging scripts with the aid of IPython and Pdb, and turning “?at” scripts into reusable modules (Chapters 2. 2. 5, 2. 2. 6, and 2. 5. 3 are added). Several parts of Chapter 4 on numerical computing have been extended (- pecially Chapters 4. 3. 5, 4. 3. 7, 4. 3. 8, and 4. 4). Many smaller changes have been implemented in Chapter 8; the larger ones concern exemplifying Tar archives instead of ZIP archives in Chapter 8. 3. 4, rewriting of the material on generators in Chapter 8. 9. 4, and an example in in Chapter 8. 6. 13 on adding new methods to a class without touching the original source code and without changing the class name. Revised and additional tips on op- mizing Python code have been included in Chapter 8. 10. 3, while the new Chapter 8. 10.
Includes supplementary material: sn.pub/extras
Hans Petter Langtangen
C++ programming language FORTRAN Maple MatLab Open Source Windows computational science interfaces language scripting simulation software text processing user interface web applications
From the reviews of the second edition:"This book addresses primarily a CSE (computational science and engineering) audience. … gives a clear and detailed account on the ways in which the surprisingly powerful Python language may aid the CSE community." (H. Muthsam, Monatshefte für Mathematik, Vol. 151 (4), 2007)“This book is excellent for people in computational sciences wanting to learn Python, or for people new to numerical computations. Python is an exciting programming language (scripting language to be specific) allowing rapid application development. … the aim of the present book is … learning how to program in Python. With it’s 760 pages it offers many examples and tips. … meets its goals in a convincing way. It provides a very good start to do numerical computations with Python.” (Benny Malengier, Bulletin of the Belgian Mathematical Society, Vol. 15 (1), 2008)
()