Question
Really short question! Also need the R code for implementing the bisection method. Thank you!
(30%)Q1: Please use the bisection method to find all zero points of the following function, f(x)7.82 - 28.33 39.27
0 0
Add a comment Improve this question Transcribed image text
Answer #1

BISECTION METHOD:-

Consider a equation f (x) = 0 which has a zero in the interval [a,b] it means sign of f(x) changes

i.e. f (a) * f (b) < 0.

       Bisection scheme computes the zero, say c, by repeatedly halving the interval [a,b].

       c = (a+b) / 2

the interval [a,b] is replaced either with [c,b] or with [a,c] depending on the sign of f (a) * f (c) . This process is continued until the zero is obtained.

There is a root/(r) in [a..b 1 f(b) dl fa) dl sign of fia) + sign off(b)There is a root/(r) in [a..b 1 f(b) dl fa) dl sign of fia) + sign off(b)

Here f(x) = x3 + 7.8x2 - 28.33x - 39.27

To get basic idea about the range in which the roots can be exist

f'(x) = 3x2 + 15.6x - 28.33 ( slope of f(x) )

roots( f'(x) = -6.6253, 1.4253

When slope of a curve = 0 (minima/maxima) => both side of that point roots exist ( not always true)

Hence root roots lies (-∞, -6.6), (-6.6, 1.4) , (1.4, ∞)

Otherwise we can use hit-trial method

So for first root we will pick-up an interval from (-∞, -6.6)

[-15, -6]   

f(-15) = -1234.32 , f(-6) = 195.51 ===> valid interval

f(-21/2) = -39.48

UAAAAASUVORK5CYIIA

Hence first root = -10.2

So for 2nd root we will pick-up an interval from (-6.6, 1.4)

[-6, 2]   

f(-6) = 195.51, f(2) = -56.73 , f(0) = -39.27 so we prefer

f(-3) = 88.92

hQzWcW8CEzdoUFH8CHaj6zgA+Zuits+AA+VPOZBX

2nd root = -1.1

So for 3rd root we will pick-up an interval from (1.4, ∞)

[2,10]

f(2) = -56.73, f(10) = 1457.43 ===> valid interval

x   f(x)
6   287.66
4   36.21
3   -27.06
3.5   0

3rd root = 3.5

Add a comment
Know the answer?
Add Answer to:
Really short question! Also need the R code for implementing the bisection method. Thank you! (30%)Q1:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Really short question! Please help me to solve! It also needs the R code, thank you!...

    Really short question! Please help me to solve! It also needs the R code, thank you! Requirements: (25%)Q2: Please use the accept-reject method to generate 5000 samples from f(x) = 02 n which gfx) - 3e-3) and M f(x) M.g() and prove thet in which gr)3e 1-9(3) 3V2T (1-(3) algorithm proof R code

  • Really short question! Please help me to solve part(b), also need the R code, thank you!...

    Really short question! Please help me to solve part(b), also need the R code, thank you! Problem 4 [26 points] (Section 2.4): Consider a one-sample z-test (known variance) with hypotheses: Ho: μ lo vs H, μ μο. a/2 where φ(.)Is the CDF of N(0,1), d-layo, and δ is the difference between the true mean and the mean under Ho (a) [10 points] Based on the fact that φ(x) [pdf of N(0,1)] is a decreasing function in x when x> 0,...

  • Really short question! Please help me to solve ONLY part(b) with R code. Thank you! Problem...

    Really short question! Please help me to solve ONLY part(b) with R code. Thank you! Problem 4 [26 points] (Section 2.4): Consider a one-sample z-test (known variance) with hypotheses: Ho: μ lo vs H, μ *Ho. The probability of Type II error can be written in the form |ß D(%2_Jnd)-0(-%2_Jnd) where Φ㈠ is the CDF of N(0,1), d Isyo, and δ is the difference between the true mean and the mean under Ho (a) [10 points] Based on the fact...

  • Really short question! Please help me to solve, thank you! (30%)Q2 (Poisson regression): We collected n...

    Really short question! Please help me to solve, thank you! (30%)Q2 (Poisson regression): We collected n 15 independent count observations {Vi : 1,..., 15 and their corresponding covariates (i 1,..., 15). Assume the relationship between Vi and xỉ (for i-: 1, , 15) is yi ~ Poisson(A) and log(A) α+ßxi. Please 1) write down the likelihood function L(a, B|x, y) of the Poisson regression model; 2) derive the Newton method for maxmizing L(a, BIx, y); 3) implement the Newton method...

  • Please explain your work so I can replicate it and practice. Please also include R code,...

    Please explain your work so I can replicate it and practice. Please also include R code, not just R outputs. Thank you. 2, (3 points) Let X be a standard normal random variable. Let Y = X2. (Use R and give code.) (a) Find P(-1.5 < X < 2.5) (b) Find P(Y1 Notes: . You are not expected to and don't need to figure out the distribution of Y. Just convert the probability for Y to a probability involving X...

  • Question 2 (20 Points) (1) Use the Bisection method to find solutions accurate to within 10-2...

    Question 2 (20 Points) (1) Use the Bisection method to find solutions accurate to within 10-2 for x3 - 7x2 + 14x - 6 = 0 on the interval [3.2, 4]. Using 4-digit rounding arithmatic. (2) Consider the function f(x) = cos x - x. (a). Approximate a root of f(x) using Fixed-point method accurate to within 10-2 (b). Approximate a root of f(x) using Newton's method accurate to within 10-2.

  • Not in C++, only C code please In class, we have studied the bisection method for...

    Not in C++, only C code please In class, we have studied the bisection method for finding a root of an equation. Another method for finding a root, Newton's method, usually converges to a solution even faster than the bisection method, if it converges at all. Newton's method starts with an initial guess for a root, xo, and then generates successive approximate roots X1, X2, .... Xj, Xj+1, .... using the iterative formula: f(x;) X;+1 = x; - f'(x;) Where...

  • Really need help with these problems, it would be really appreciated. Thank you! Find the values...

    Really need help with these problems, it would be really appreciated. Thank you! Find the values of x, y and z that correspond to the critical point of the function: z = f(x, y) = 2x2 1x – 6y + 4y2 + 2xy Enter your answer as a decimal number, or a calculation (like 22/7) = X Preview (Round to 4 decimal places) YF Preview (Round to 4 decimal places) z Preview (Round to 4 decimal places) Find the points...

  • please show answer in full with explanation, also show matlab 1. Consider the function f(x)2.753 +18r2 21 12 a) Plot...

    please show answer in full with explanation, also show matlab 1. Consider the function f(x)2.753 +18r2 21 12 a) Plot the graph of f(x) in MATLAB and find all the roots of the function f(x) graphically. Provide the code and the plot you obtained. b) Compute by hand the first root of the function with the bisection method, on the interval -1; 0) for a stopping criterion of 1% c) How many iterations on the interval -1, 0 are needed...

  • Please help me finish these two problems, I really have no way. Thank you for your...

    Please help me finish these two problems, I really have no way. Thank you for your patience! thank you! 3. -/2 points SCalcET7 14.8.004. Use Lagrange multipliers to find the maximum and minimum values of the function subject to the given constraint. (If an answer does not exist, enter DNE.) f(x, ) = 6x + 6y; x2 + y2 = 18 maximum minimum Need Help? Talk to a Tutor Show My Work (Optional) 4. -12 points ScalcET7 14.8.005. Use Lagrange...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT