Skip to main content
  • Textbook
  • Open Access
  • © 2016

Programming for Computations - MATLAB/Octave

A Gentle Introduction to Numerical Simulations with MATLAB/Octave

  • Easy-to-read text offering a gentle introduction to the necessary mathematics and computer science concepts

  • Focuses on explaining all details of how to construct programs to solve mathematical problems

  • Further emphasizes verification procedures and how to embed them in automatic test frameworks

  • Includes supplementary material: sn.pub/extras

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

Buying options

Softcover Book USD 59.99
Price excludes VAT (USA)
Hardcover Book USD 59.99
Price excludes VAT (USA)

Table of contents (6 chapters)

  1. Front Matter

    Pages i-xvi
  2. The First Few Steps

    • Svein Linge, Hans Petter Langtangen
    Pages 1-24Open Access
  3. Basic Constructions

    • Svein Linge, Hans Petter Langtangen
    Pages 25-46Open Access
  4. Computing Integrals

    • Svein Linge, Hans Petter Langtangen
    Pages 47-85Open Access
  5. Solving Ordinary Differential Equations

    • Svein Linge, Hans Petter Langtangen
    Pages 87-152Open Access
  6. Solving Partial Differential Equations

    • Svein Linge, Hans Petter Langtangen
    Pages 153-175Open Access
  7. Solving Nonlinear Algebraic Equations

    • Svein Linge, Hans Petter Langtangen
    Pages 177-201Open 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.

Keywords

  • programming
  • MATLAB/Octave
  • verification
  • numerical methods
  • differential equations

Reviews

“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)

Authors and Affiliations

  • Process,Energy&Environmental Technology, University College of Southeast Norway, Porsgrunn, Norway

    Svein Linge

  • Simula Research Laboratory BioComp, Lysaker, Norway

    Hans Petter Langtangen

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

Buying options

Softcover Book USD 59.99
Price excludes VAT (USA)
Hardcover Book USD 59.99
Price excludes VAT (USA)