O'Reilly logo

Numerical C: Applied Computational Programming with Case Studies by Philip Joyce

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Philip Joyce 2019
P. JoyceNumerical Chttps://doi.org/10.1007/978-1-4842-5064-8_3

3. Numerical Integration

Philip Joyce1 
(1)
Goostrey, UK
 
In calculus if we want to find the area under a curve, there is often a simple technique of calculus for us to use. Consider the curve in Figure 3-1. This is the curve of y = 2x – x2.
../images/480762_1_En_3_Chapter/480762_1_En_3_Fig1_HTML.png
Figure 3-1

Finding the area between a curve and x-axis

The technique involves adding one to the power and bringing the power down to divide.

This is specified by
$$ \underset{0.4}{\overset{1.6}{\int }}2x-{x}^2\kern0.125em dx $$
In this case we have chosen to find the area between 0.4 and 1.6 on the x-axis. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required