computing integrals we now turn our attention to solving mathematical problems through computer programming there are many reasons to choose integration as our first application integration is well known already from high school mathematics most integrals are not tractable by pen and paperand computerized solution approach is both very much simpler and much more powerful you can essentially treat all integrals rb /dx in lines of computer code (!integration also demonstrates the difference between exact mathematics by pen and paper and numerical mathematics on computer the latter approaches the result of the former without any worries about rounding errors due to finite precision arithmetics in computers (in contrast to differentiationwhere such errors prevent us from getting result as accurate as we desire on the computerfinallyintegration is thought of as somewhat difficult mathematical concept to graspand programming integration should greatly help with the understanding of what integration is and how it works not only shall we understand how to use the computer to integratebut we shall also learn series of good habits to ensure your computer work is of the highest scientific quality in particularwe have strong focus on how to write python code that is free of programming mistakes calculating an integral is traditionally done by zb xdx /( where xd df dx (cthe author( lingeh langtangenprogramming for computations pythontexts in computational science and engineering doi --