- 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
Buy this book
- About this Textbook
-
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.
From the reviews: Langtangen … does an excellent job of introducing programming as a set of skills in problem solving. He guides the reader into thinking properly about producing program logic and data structures for modeling real-world problems using objects and functions and embracing the object-oriented paradigm. … Summing Up: Highly recommended.
F. H. Wild III, Choice, Vol. 47 (8), April 2010
Those of us who have learned scientific programming in Python ‘on the streets’ could be a little jealous of students who have the opportunity to take a course out of Langtangen’s Primer.”
John D. Cook, The Mathematical Association of America, September 2011This book goes through Python in particular, and programming in general, via tasks that scientists will likely perform. It contains valuable information for students new to scientific computing and would be the perfect bridge between an introduction to programming and an advanced course on numerical methods or computational science.
Alex Small, IEEE, CiSE Vol. 14 (2), March /April 2012“This fourth edition is a wonderful, inclusive textbook that covers pretty much everything one needs to know to go from zero to fairly sophisticated scientific programming in Python…”
Joan Horvath, Computing Reviews, March 2015 - About the authors
-
Hans Petter Langtangen is a professor of computer science at the University of Oslo. He has formerly been a professor of mechanics and is now the director of a Norwegian Center of Excellence: "Center for Biomedical Computing", at Simula Research Laboratory. Langtangen has published over 100 scientific publications and written several books, including papers and the bestseller TCSE 6 "A Primer on Scientific Programming with Python", now in its 5th edition. He has also developed open source and commercial software systems for computational sciences.
- Reviews
-
“This update to previous editions … continues to serve as an excellent introduction to scientific programming and the Python programming language. … Each chapter has a significant collection of exercises, which reinforce the concepts contained in the chapter. … this is an excellent book for any individual starting to learn scientific programming, and it will serve as a great reference book for those working in the field. Summing Up: Recommended. Lower- and upper-division undergraduates.” (D. B. Mason, Choice, Vol. 54 (9), May, 2017)
“The authors have made a very concerted effort to describe Python in a very easy, flowing way with many useful case studies. … I have no hesitation in recommending this book for senior high school students or freshmen in college. One must certainly have access to the Python development environment, and this book will be a worthy companion in the journey to mastering programming concepts.” (Naga Narayanaswamy, Computing Reviews, May, 2017)
“All the concepts are illustrated using relatively simple examples that are mostly mathematical. … This book gives a thorough course to learn Python, and yet it is all brought at the level of a first year at the university. The fact that each concept is introduced with an example is essential. … it is a description of how the language is used, which is a very natural approach.” (European Mathematical Society, euro-math-soc.eu, August, 2016)
- Table of contents (9 chapters)
-
-
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
-
Table of contents (9 chapters)
- Download Preface 1 PDF (113.5 KB)
- Download Sample pages 1 PDF (353 KB)
- Download Table of contents PDF (450 KB)
Buy this book

Services for this Book
Recommended for you

Bibliographic Information
- Bibliographic Information
-
- Book Title
- A Primer on Scientific Programming with Python
- Authors
-
- Hans Petter Langtangen
- Series Title
- Texts in Computational Science and Engineering
- Series Volume
- 6
- Copyright
- 2016
- Publisher
- Springer-Verlag Berlin Heidelberg
- Copyright Holder
- Springer-Verlag GmbH Germany, part of Springer Nature
- eBook ISBN
- 978-3-662-49887-3
- DOI
- 10.1007/978-3-662-49887-3
- Hardcover ISBN
- 978-3-662-49886-6
- Softcover ISBN
- 978-3-662-57046-3
- Series ISSN
- 1611-0994
- Edition Number
- 5
- Number of Pages
- XXXI, 922
- Number of Illustrations
- 68 b/w illustrations, 20 illustrations in colour
- Topics