Skip to main content
  • Textbook
  • © 2006

Python Scripting for Computational Science

Part of the book series: Texts in Computational Science and Engineering (TCSE, volume 3)

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (12 chapters)

  1. Front Matter

    Pages I-XXIV
  2. Introduction

    Pages 1-25
  3. Basic Python

    Pages 73-129
  4. Advanced Python

    Pages 313-441
  5. Tools and Examples

    Pages 591-662
  6. Back Matter

    Pages 663-742

About this book

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.

Reviews

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)

Authors and Affiliations

  • Simula Research Laboratory, Lysaker, Norway

    Hans Petter Langtangen

Bibliographic Information

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access