Table of contents

  1. Front Matter
    Pages i-xvi
  2. Svein Linge, Hans Petter Langtangen
    Pages 1-28 Open Access
  3. Svein Linge, Hans Petter Langtangen
    Pages 29-53 Open Access
  4. Svein Linge, Hans Petter Langtangen
    Pages 55-93 Open Access
  5. Svein Linge, Hans Petter Langtangen
    Pages 95-160 Open Access
  6. Svein Linge, Hans Petter Langtangen
    Pages 161-183 Open Access
  7. Svein Linge, Hans Petter Langtangen
    Pages 185-208 Open Access
  8. Back Matter
    Pages 209-232

About this book


This book presents computer programming as a key method for solving mathematical problems. There are two versions of the book, one for MATLAB and one for Python. The book was inspired by the Springer book TCSE 6: A Primer on Scientific Programming with Python (by Langtangen), but the style is more accessible and concise, in keeping with the needs of engineering students.

The book outlines the shortest possible path from no previous experience with programming to a set of skills that allows the students to write simple programs for solving common mathematical problems with numerical methods in engineering and science courses. The emphasis is on generic algorithms, clean design of programs, use of functions, and automatic tests for verification.


programming Python verification numerical methods differential equations

Authors and affiliations

  1. 1.Process,Energy&Environmental TechnologyUniversity College of Southeast NorwayPorsgrunnNorway
  2. 2.Simula Research Laboratory BioCompLysakerNorway

About the authors

Svein Linge is a professor of modelling and simulation at the University College of Southeast Norway and holds a Dr. Scient. degree in biomechanics from the Norwegian School of Sport Sciences. He works part-time at a Norwegian Center of Excellence: "Center for Biomedical Computing", at Simula Research Laboratory, to which he has been linked for the last 13 years. His main research interests includes cerebrospinal fluid dynamics, cardiac electro-mechanics and sport biomechanics. Over the last decade, Linge has been particularly engaged in reforming the engineering education in mathematics and physics to take advantage of computer programming and simulation.

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.

Bibliographic information

Industry Sectors
IT & Software
Energy, Utilities & Environment
Oil, Gas & Geosciences


“The book uses programming to impart a deeper understanding of the pragmatic meaning of some of the mathematics most frequently used in engineering and the sciences. … This very good introductory textbook could be used in a variety of courses. A motivated reader with knowledge of calculus could easily use it for self-study. I highly recommend it.” (David Naugler, Computing Reviews, February, 2017)

“This book is intended for novice programmers, especially students, teachers, engineers and scientists from areas related to mathematics and numerical mathematics. … each treated concept is illustrated and explained in detail by means of working examples. On the basis of exercises, the reader is given the opportunity to deepen acquired knowledge. … The clear presentation and the large number of concrete examples, often with a graphical output, make this book ideally suited for self-study and ensures a quick success.” (Stefan Meyer, zbMATH 1350.68003, 2017)