Table of contents

  1. Front Matter
    Pages i-xvi
  2. Svein Linge, Hans Petter Langtangen
    Pages 1-24 Open Access
  3. Svein Linge, Hans Petter Langtangen
    Pages 25-46 Open Access
  4. Svein Linge, Hans Petter Langtangen
    Pages 47-85 Open Access
  5. Svein Linge, Hans Petter Langtangen
    Pages 87-152 Open Access
  6. Svein Linge, Hans Petter Langtangen
    Pages 153-175 Open Access
  7. Svein Linge, Hans Petter Langtangen
    Pages 177-201 Open Access
  8. Back Matter
    Pages 203-216

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 MATLAB/Octave 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

  • Book Title Programming for Computations - MATLAB/Octave
  • Book Subtitle A Gentle Introduction to Numerical Simulations with MATLAB/Octave
  • Authors Svein Linge
    Hans Petter Langtangen
  • Series Title Texts in Computational Science and Engineering
  • Series Abbreviated Title Texts in Computat. Science
  • DOI
  • Copyright Information The Editor(s) (if applicable) and The Author(s) 2016
  • License CC BY-NC
  • Publisher Name Springer, Cham
  • eBook Packages Mathematics and Statistics Mathematics and Statistics (R0)
  • Hardcover ISBN 978-3-319-32451-7
  • Softcover ISBN 978-3-319-81289-2
  • eBook ISBN 978-3-319-32452-4
  • Series ISSN 1611-0994
  • Series E-ISSN 2197-179X
  • Edition Number 1
  • Number of Pages XVI, 216
  • Number of Illustrations 43 b/w illustrations, 0 illustrations in colour
  • Topics Computational Science and Engineering
    Numeric Computing
    Mathematical Software
    Numerical Analysis
  • Buy this book on publisher's site


“Each chapter offers numerical analysis problems to be solved. The authors walk the reader through the solution, using MATLAB source code to solve each problem, and provide the mathematical formulas for each problem presented. … The presentation is done well; it is easy to follow and pedagogically sound. The development of good code is stressed throughout the text. The examples presented are interesting to a broad audience.” (Robert M. Lynch, 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.68002, 2017)