Okay so I'm making a program were I am measuring the approximated value of the area under a function. I'm making it so that I write the limits and then an error value that I allow. I choose the value. This means that the problem should terminate when fabs(SumOld-sum) < eps. And also to show at how many intervals under the graph of the functions this is achieved. The problem is that I can't make it work. If I type in the error as 0.00000001 I should get a sum around 8.999999998 if the limits are 0 and 3 and intervals at 32768, but I get a totally different i. e. wrong number.. I so far have the following
Oh I'm sorry. The problem is that I can't make it work. If I type in the error as 0.00000001 I should get a sum around 8.999999998 and intervals at 32768, but I get a totally different i. e. wrong number.