Trapezoid rule, Simpson's Rule.
"a) A certain computer takes two seconds to compute a certain definite integral accurate to 4 decimal places. using the trapezoid rule. Approximately how long will it take to get 8 digets correct? 12? 20? b) repeat part a assuming Simpson's rule is being used throughout"
So is this question the type where we want to figure out Error?
@Kainui :)
@zepdrix
I wouldn't call this a matter of "finding the error." Rather, I'd recognize that it takes longer to approximate a sum (which represents area here) correct to eight decimal places than it does to just four decimal places. Assuming that it "costs" the same amount of time to improve the accuracy by 1 decimal place, estimate how long it would take for this computer to approx. the area to eight places.
Right
@mathmale so how do I set this up?
You are not asked to compute anything other than a period of time for the necessary computing, so there's practically nothing to set up. 'A certain computer takes two seconds to compute a certain definite integral accurate to 4 decimal places." If that's so, then how long will the computer take to compute this integral to 1 decimal place? to 8 decimal places? I may be overlooking something here, but this straightforward approach is the one I'd take myself.
2 seconds = 4 decimal places 1 seconds = 2 decimal places is that what you mean? Why would it even mention Trapezoid rule then?
@Astrophysics :>
I think i'm meant to find the bounds that make = 2 (Seconds) but then I also have to find the f(x) part.. o.o
How do you know the complexity grows linearly ?
What's the "error formula" in trapezoidal rule ?
\[|E_T|\le \frac{ k(b-a)^3 }{ 12n^2 }, |f''(x)|\le k\]
So the error is proportional to \(\dfrac{1}{n^2}\) where \(n\) is the number of intervals, yes ?
mm yes
Let me ask another simple question
Suppose I say my height is "6 feet". whats the "greatest possible error" in my height If I say the estimation is "one feet accurate" ?
1 foot?
Nope, think a bit
If my measured height is 5.6 feet, I would round it to 6 feet. What would I round to if my measured height is 6.3 feet ?
well..rounding up or rounding down? 6ft?
Yes, with an 1 foot accuracy device, my "actual height" can be anywhere from 5.5 to 6.5. The "greatest possible error" is then 0.5 foot, yes ?
Oh, yes, I see xD
Lets do another quick exammple
Suppose I say my height is "6 feet". whats the "greatest possible error" in my height If I say the estimation is "one decimal place accurate" ?
5.9 to 6.1
I am not asking that
I am asking about the "greatest possible error" not the range
0.1
Wrong again, think a bit
If my measured height is 6.07 feet, I would round it to 6.1 feet. If my measured height is 6.04 feet, I would round it to 6.0 feet. So the "greatest possible error" is simply 0.05 foot, yes ?
Notice 0.05 = 0.1/2
If it is still confusing, I suggest you spend some time on this first... just google "greatest possible error"
lol yeah I should do that :/ but that's right there in the formula delta(x)/2 yeah?
Exactly!
Lets get back to our original problem
We're given that the definite integral is accurate to 4 decimal places. What's the greatest possible error here ?
0.0001/2 = 0.00005
Perfect!
yeeay! first answer i've gotten right! xP
What's the greatest possible error if we want it accurate upto 8 decimal places ?
0.00000001/2 =
four decimal places : 0.00005 = \(5 * 10^{-5}\) eight decimal places : \(5 * 10^{-9}\) ?
And we know that above error is proportional to \(\dfrac{1}{n^2}\)
\[5*10^{-5} = \dfrac{k}{{n_4}^2}\] \[5*10^{-9} = \dfrac{k}{{n_8}^2}\]
divide them and get \[\dfrac{n_8^2}{n_4^2} = 10^4\]
still with me ?
Yup yup. Just taking it all in heh
Here, \(n_4\) is the number of intervals needed for getting 4 decimal places accuracy
similarly, \(n_8\) is the number of intervals needed for getting 8 decimal places accuracy
Take square root and get \[\dfrac{n_8}{n_4} = 10^2 \] or \[n_8 = 100n_4\]
What does that tell you ?
take your time, there is a lot to digest here..
why do we want to divide them by each other?
to eliminate the proportionality constant \(k\) silly
Our goal is to get a relation between \(n_4\) and \(n_8\), so that we know how many more intervals we need to increase the accuracy from 4 decimal places to 8 decimal palces
dividing both equations gets rid of \(k\)
ahh ok
\[n_8 = 100n_4\] This tells us that we need to increase the intervals by 100 times in order to improve the accuracy from 4 decimal places to 8 decimal places.
can we assume that that is a constant type of thing? like, could we say that to get the accuracy from 8 to 12 would also be 100x or that from 4 decimals to 12 would be 200x?
You're half correct
4 to 8 decimal places : 100x 8 to 12decimal places : 100x therefore 4 to 12 decimal places should be : 10000x right ?
oh, yes xD so when this asks..approximately how long it will take to get to 12 decimal places, that would be calculated from the 4, yeah? and then to get to the 20..it would be.. 16*100 ?
Nope
4 to 8 : 2*100 8 to 12 : 2*100^2 12 to 16 : 2*100^3 16 to 20 : 2*100^4
To increase the accuracy by 4 more decimal places, you need to do 100 times more work
so 8 decimal places accuracy takes approximately 200 seconds
12 decimal places accuracy takes approximately 20000 seconds
20 decimal places accuracy takes approximately 2*10^8 seconds
That is approximately 6 years !
For 20 decimal places accuracy using trapezoidal rule and your super computer, you will need to wait 6 years !
hahah such a long time! x.x perhaps not such a super computer after all :P
but if from n_0 to n_4 it takes 2 seconds and we increase those seconds by 100 times to get n_4 to n_8 then we have 2*100 which is where you get 200?
cheap computers these days can do "addition" in "one nanosecond"
You have understood it correctly
1 nanosecond? gwoow
Whats the frequency of the processor on your computer ?
So then later when we're going from n_8 to n_12 why do we put the ^2 on the 100?
eer idk, how does one check that? xD
tell me your computer model
oh nvm that question, it's because it's an increase by 100 xD
Yep
oh nvm that question, it's because it's an increase by `a factor of ` 100 xD
Ideapad s400 touch lenovo
you have intel i3 processor with 2 cores each core operating at a frequency of 1.8 GHz
frequency is 1.8 GHz given frequency, do you know how to calculate the "time period" ?
Nope xD I am ignorant in this area. Pray tell o.o
haven't you heard of "frequency" and "time period" before ?
well..yes
[question: then to get 20 decimal places would it be 20*10^(what is this number then?)]
20 decimal places accuracy takes approximately 2*10^8 seconds
wait. 12 decimal places takes 12*10^8 and 20 takes 2*10^8 ?
was that meant to be a 20?
how did you get 12*10^8 for 12 decimal places ?
Join our real-time social learning platform and learn together with your friends!