You are on page 1of 2
4 Mallory Weiler Research studies have shown that looking at pictures of cute, baby animals is calming and helps with focus. On the off chance that it helps you, | have included a picture of a baby ko: You will submit a scan of your written work to Gradescope as a single POF file and you will submit your Excel work to Canvas as a single XLSM file. This portion of the exam is intended to be done by hand: 1. Consider the VBA code shown below. What value will appear in the active cell if you were to run this? (It is probably faster to evaluate this on your own than to run it in VBA.) Answer =1 Ante 1 Fy a= new Ans Ans ©4-5= 29 e—new Ans Answer=Answer*k = ANS! 20. 120 Fork=4to6 Next k Activecell value = Answer = '20 The value in the active cell witl be 2. Ina program to find the root of a nonlinear equation, you find that when k = 2, x= 73 and when k=3, x= 63. What is the absolute error at this step? Show your work. Absolute error = | xnew - xold| = [3-73] = [10] <— Absolute 1 a Err W373} = [to] = to sen yee 3. Write out the terms for the series shown below: 4.4 Di at e J 4. Consider the equation: Z <— That's the Sum terms are 22+ sin(x) = 10 written. x*= 10-sinW&) out above Your first guess is that x ‘Write an equation in a form appropriate for use with the successive substitution technique, Fi guess. That is, perform ONE step of successive substitution. €— equation appropriate for Successive Substtution Next guess: x= flo-sin@) = VlO-0 =|Mio ]® 31022776 The next guess is +he Square root of ID. Scanned with CamScanner 5. Which technique would you recommend that a colleague use to find the root, 3x? In your caleutator, you easily — ( Jes find that starting guests | Could be vst ond x22. Explain your reasoning. | \ would recommend the Secant Method for this root. First, itt easy +o Set +hi v . equar 4s O49 [X+ aes ~ 5 =O), Second, it's a powerful yer prety safe method that doesn't require determination of the derwatve, The derivative isn't tro hord +2 find, but the Secan+ method combines the BiSECHOn ang newfon Raphson methodt in theg It Appraximates the derivativ’ in the “ynew" formula, and it needs 2Z inital guestes. There Suen ah EAE BENG ancad coke Ula PRR YS ei we Staton SthehOPRSD © have much it: 18k Of Someone submit: meting it ey 6. Use VBA to evaluate the series below to a relative error of 1x 10°: Sure = [0.3674 Se er ot Terms Required: & : 4 7. Solve the equation below for a root between 0 and 1 using the bisection method: USed same rel: error 210 ig = root : [x= O-corasT) 3e* = 10 Zexp(2#» -1o =O 8. Solve the equation below for a root between 1 and 2 using the Newton-Rhapson method: uted Same. 3x*-6x =6 rel, error fune : 3x4 - by — 20 2 tll | deriv \ la3-o=0 sy ~ Scanned with CamScanner

You might also like