1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Calculation of integral numerical

Discussion in 'C' started by Apprentice123, May 4, 2009.

  1. Apprentice123

    Apprentice123 New Member

    Joined:
    May 4, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    And where are you stuck with this assignment?
     

Share This Page