Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Calculation of integral numerical (http://www.go4expert.com/forums/calculation-integral-numerical-t17306/)

Apprentice123 4May2009 05:09

Calculation of integral numerical
You can get the value of the area of a given function F (x) in interval [a, b] adding to the areas of rectangles defined by the curve of the function, is adopting a width D of rectangles as small as you want. It begins assuming D = (b-a) / 2, and repeatedly, as is D = D / 2, calculated at the sum of A1 and A2 areas of contiguous rectangles alternate in x and x + D, respectively, given by A1 = abs (f (x)) * D and A2 = abs (f (x + D)) * D, throughout the interval, until the absolute difference of the two areas is less than one and arbitrary. The end value of area is A1 + A2.

a) Describe it in terms of its elements: input, output and terms of the result.

b) Make the examination of the above in terms of problems and subproblemas, using the technique of successive refinements.

xpi0t0s 4May2009 14:46

Re: Calculation of integral numerical
And where are you stuck with this assignment?

All times are GMT +5.5. The time now is 07:18.