Ask your own question, for FREE!
Mathematics 12 Online
OpenStudy (babynini):

Trapezoid rule, Simpson's Rule.

OpenStudy (babynini):

"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"

OpenStudy (babynini):

So is this question the type where we want to figure out Error?

OpenStudy (babynini):

@Kainui :)

OpenStudy (babynini):

@zepdrix

OpenStudy (mathmale):

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.

OpenStudy (babynini):

Right

OpenStudy (babynini):

@mathmale so how do I set this up?

OpenStudy (mathmale):

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.

OpenStudy (babynini):

2 seconds = 4 decimal places 1 seconds = 2 decimal places is that what you mean? Why would it even mention Trapezoid rule then?

OpenStudy (babynini):

@Astrophysics :>

OpenStudy (babynini):

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

ganeshie8 (ganeshie8):

How do you know the complexity grows linearly ?

ganeshie8 (ganeshie8):

What's the "error formula" in trapezoidal rule ?

OpenStudy (babynini):

\[|E_T|\le \frac{ k(b-a)^3 }{ 12n^2 }, |f''(x)|\le k\]

ganeshie8 (ganeshie8):

So the error is proportional to \(\dfrac{1}{n^2}\) where \(n\) is the number of intervals, yes ?

OpenStudy (babynini):

mm yes

ganeshie8 (ganeshie8):

Let me ask another simple question

ganeshie8 (ganeshie8):

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" ?

OpenStudy (babynini):

1 foot?

ganeshie8 (ganeshie8):

Nope, think a bit

ganeshie8 (ganeshie8):

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 ?

OpenStudy (babynini):

well..rounding up or rounding down? 6ft?

ganeshie8 (ganeshie8):

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 ?

OpenStudy (babynini):

Oh, yes, I see xD

ganeshie8 (ganeshie8):

Lets do another quick exammple

ganeshie8 (ganeshie8):

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" ?

OpenStudy (babynini):

5.9 to 6.1

ganeshie8 (ganeshie8):

I am not asking that

ganeshie8 (ganeshie8):

I am asking about the "greatest possible error" not the range

OpenStudy (babynini):

0.1

ganeshie8 (ganeshie8):

Wrong again, think a bit

ganeshie8 (ganeshie8):

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 ?

ganeshie8 (ganeshie8):

Notice 0.05 = 0.1/2

ganeshie8 (ganeshie8):

If it is still confusing, I suggest you spend some time on this first... just google "greatest possible error"

OpenStudy (babynini):

lol yeah I should do that :/ but that's right there in the formula delta(x)/2 yeah?

ganeshie8 (ganeshie8):

Exactly!

ganeshie8 (ganeshie8):

Lets get back to our original problem

ganeshie8 (ganeshie8):

We're given that the definite integral is accurate to 4 decimal places. What's the greatest possible error here ?

OpenStudy (babynini):

0.0001/2 = 0.00005

ganeshie8 (ganeshie8):

Perfect!

OpenStudy (babynini):

yeeay! first answer i've gotten right! xP

ganeshie8 (ganeshie8):

What's the greatest possible error if we want it accurate upto 8 decimal places ?

OpenStudy (babynini):

0.00000001/2 =

ganeshie8 (ganeshie8):

four decimal places : 0.00005 = \(5 * 10^{-5}\) eight decimal places : \(5 * 10^{-9}\) ?

ganeshie8 (ganeshie8):

And we know that above error is proportional to \(\dfrac{1}{n^2}\)

ganeshie8 (ganeshie8):

\[5*10^{-5} = \dfrac{k}{{n_4}^2}\] \[5*10^{-9} = \dfrac{k}{{n_8}^2}\]

ganeshie8 (ganeshie8):

divide them and get \[\dfrac{n_8^2}{n_4^2} = 10^4\]

ganeshie8 (ganeshie8):

still with me ?

OpenStudy (babynini):

Yup yup. Just taking it all in heh

ganeshie8 (ganeshie8):

Here, \(n_4\) is the number of intervals needed for getting 4 decimal places accuracy

ganeshie8 (ganeshie8):

similarly, \(n_8\) is the number of intervals needed for getting 8 decimal places accuracy

ganeshie8 (ganeshie8):

Take square root and get \[\dfrac{n_8}{n_4} = 10^2 \] or \[n_8 = 100n_4\]

ganeshie8 (ganeshie8):

What does that tell you ?

ganeshie8 (ganeshie8):

take your time, there is a lot to digest here..

OpenStudy (babynini):

why do we want to divide them by each other?

ganeshie8 (ganeshie8):

to eliminate the proportionality constant \(k\) silly

ganeshie8 (ganeshie8):

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

ganeshie8 (ganeshie8):

dividing both equations gets rid of \(k\)

OpenStudy (babynini):

ahh ok

ganeshie8 (ganeshie8):

\[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.

OpenStudy (babynini):

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?

ganeshie8 (ganeshie8):

You're half correct

ganeshie8 (ganeshie8):

4 to 8 decimal places : 100x 8 to 12decimal places : 100x therefore 4 to 12 decimal places should be : 10000x right ?

OpenStudy (babynini):

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 ?

ganeshie8 (ganeshie8):

Nope

ganeshie8 (ganeshie8):

4 to 8 : 2*100 8 to 12 : 2*100^2 12 to 16 : 2*100^3 16 to 20 : 2*100^4

ganeshie8 (ganeshie8):

To increase the accuracy by 4 more decimal places, you need to do 100 times more work

ganeshie8 (ganeshie8):

so 8 decimal places accuracy takes approximately 200 seconds

ganeshie8 (ganeshie8):

12 decimal places accuracy takes approximately 20000 seconds

ganeshie8 (ganeshie8):

20 decimal places accuracy takes approximately 2*10^8 seconds

ganeshie8 (ganeshie8):

That is approximately 6 years !

ganeshie8 (ganeshie8):

For 20 decimal places accuracy using trapezoidal rule and your super computer, you will need to wait 6 years !

OpenStudy (babynini):

hahah such a long time! x.x perhaps not such a super computer after all :P

OpenStudy (babynini):

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?

ganeshie8 (ganeshie8):

cheap computers these days can do "addition" in "one nanosecond"

ganeshie8 (ganeshie8):

You have understood it correctly

OpenStudy (babynini):

1 nanosecond? gwoow

ganeshie8 (ganeshie8):

Whats the frequency of the processor on your computer ?

OpenStudy (babynini):

So then later when we're going from n_8 to n_12 why do we put the ^2 on the 100?

OpenStudy (babynini):

eer idk, how does one check that? xD

ganeshie8 (ganeshie8):

tell me your computer model

OpenStudy (babynini):

oh nvm that question, it's because it's an increase by 100 xD

ganeshie8 (ganeshie8):

Yep

ganeshie8 (ganeshie8):

oh nvm that question, it's because it's an increase by `a factor of ` 100 xD

OpenStudy (babynini):

Ideapad s400 touch lenovo

ganeshie8 (ganeshie8):

ganeshie8 (ganeshie8):

you have intel i3 processor with 2 cores each core operating at a frequency of 1.8 GHz

ganeshie8 (ganeshie8):

frequency is 1.8 GHz given frequency, do you know how to calculate the "time period" ?

OpenStudy (babynini):

Nope xD I am ignorant in this area. Pray tell o.o

ganeshie8 (ganeshie8):

haven't you heard of "frequency" and "time period" before ?

OpenStudy (babynini):

well..yes

OpenStudy (babynini):

[question: then to get 20 decimal places would it be 20*10^(what is this number then?)]

ganeshie8 (ganeshie8):

20 decimal places accuracy takes approximately 2*10^8 seconds

OpenStudy (babynini):

wait. 12 decimal places takes 12*10^8 and 20 takes 2*10^8 ?

OpenStudy (babynini):

was that meant to be a 20?

ganeshie8 (ganeshie8):

how did you get 12*10^8 for 12 decimal places ?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!