Computing Integrals and Testing Code
Svein Ohm Linge, Hans Petter Langtangen · Texts in computational science and engineering · 2019
We now turn our prime attention to the solving of mathematical problems through computer programming. A fundamentally important part of programming, is to check that the written code works as intended. That is, the code must be tested. This far, we have checked our coding in rather simple ways, e.g., by comparing to hand calculations. Now, we will look at more powerful test strategies, while addressing numerical computation of integrals.