Question

In the Problem 5 of Homework #1, for the given coefficients a= 1,b=−1e5 and c= 1,...

In the Problem 5 of Homework #1, for the given coefficients a= 1,b=−1e5 and c= 1, the root formula gives two real roots

r1= (−b−√∆)/(2a) = 1.0000003385357559e−05,

r2= (−b+√∆)/(2a) = 9.9999999989999997e+ 04

If we plug these two roots back into the quadratic function, we obtain

f(r1) =−3.3844e−07,

f(r2) = 0

We see that root r1 is not correct up to the round-off error.

(a) Explain what the problem is with the formula for evaluatingr1numerically?

(b) Come up with a way to fix it. Modify your code and recalculate the roots for a= 1,b=−1e5 and c= 1.

Check your result by plugging the root back to the quadratic polynomial.

Homework Answers

Know the answer?
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
Similar Questions
Let f(x) be a cubic polynomial of the form x^3 +ax^2 +bx+c with real coefficients. 1....
Let f(x) be a cubic polynomial of the form x^3 +ax^2 +bx+c with real coefficients. 1. Deduce that either f(x) factors in R[x] as the product of three degree-one polynomials, or f(x) factors in R[x] as the product of a degree-one polynomial and an irreducible degree-two polynomial. 2.Deduce that either f(x) has three real roots (counting multiplicities) or f(x) has one real root and two non-real (complex) roots that are complex conjugates of each other.
Suppose f(x)=x6+3x+1f(x)=x6+3x+1. In this problem, we will show that ff has exactly one root (or zero)...
Suppose f(x)=x6+3x+1f(x)=x6+3x+1. In this problem, we will show that ff has exactly one root (or zero) in the interval [−4,−1][−4,−1]. (a) First, we show that f has a root in the interval (−4,−1)(−4,−1). Since f is a SELECT ONE!!!! (continuous) (differentiable) (polynomial)   function on the interval [−4,−1] and f(−4)= ____?!!!!!!! the graph of y=f(x)y must cross the xx-axis at some point in the interval (−4,−1) by the SELECT ONE!!!!!! (intermediate value theorem) (mean value theorem) (squeeze theorem) (Rolle's theorem) .Thus, ff...
Consider the polynomial P(x)=−4x5+5x4−4x+5P(x)=−4x5+5x4−4x+5. (a) Verify that 12√(1+i)12(1+i) is a root of P(x)?(?). b) Given that...
Consider the polynomial P(x)=−4x5+5x4−4x+5P(x)=−4x5+5x4−4x+5. (a) Verify that 12√(1+i)12(1+i) is a root of P(x)?(?). b) Given that 12√(1+i)12(1+i) is also a root of P(−x)P(−x), without calculation list 44 distinct roots of P(x)P(x). Explain your answer. (c) Prove that P(x)P(x) has no real roots in (−∞,0](−∞,0] or in [3,∞)[3,∞).
Analog Signal Processing & Filter Design Please answser problem 1 below for parts a, b, c,...
Analog Signal Processing & Filter Design Please answser problem 1 below for parts a, b, c, and d. Please show all work written out, and matlab code for checking the problems with matlab. 1. Find the roots of the following polynomials and write them in factored form:             a. s2 + 4s + 4 (Use the quadratic equation and check with Matlab)             b. s2 + 2s + 10 (Use the quadratic equation and check with Matlab)             c. s3...
Question 9 (1 point) An airplane starts from rest (vo = 0) and accelerates down a...
Question 9 (1 point) An airplane starts from rest (vo = 0) and accelerates down a runway at 2 m/s2 for 23 s until it takes off. Determine the distance traveled before takeoff. Your Answer: Question 9 options: Answer Question 10 (1 point) An airplane starts from rest (vo = 0) and accelerates down a runway at 4 m/s2 and covers 245 m before it takes off. Determine the time it takes. Your Answer: Question 10 options: Answer Question 11...
1.    In a multiple regression model, the following coefficients were obtained: b0 = -10      b1 =...
1.    In a multiple regression model, the following coefficients were obtained: b0 = -10      b1 = 4.5     b2 = -6.0 a.    Write the equation of the estimated multiple regression model. (3 pts) b     Suppose a sample of 25 observations produces this result, SSE = 480. What is the estimated standard error of the estimate? (5 pts) 2.    Consider the following estimated sample regression equation: Y = 12 + 6X1 -- 3 X2 Determine which of the following statements are true,...
Assessment Identify the Variables! In rotational kinematics - the variables are: t = time, which is...
Assessment Identify the Variables! In rotational kinematics - the variables are: t = time, which is measured in s (for seconds) θ = angle = what angle did the object turn thru, usually measured radians ωO = initial angular velocity = the rotational speed of the object at the beginning of the problem, which is measured in rad/s ω = final angular velocity = the rotational speed of the object at the end of the problem, which is measured in...
In this problem you will use the cursor tracker code from the previous homework assignment to...
In this problem you will use the cursor tracker code from the previous homework assignment to measure frequency responses to various sinusoidal inputs and then generate a Bode plot. Use the Matlab file track cursor.m provided on Blackboard for a proportional controller with K = 0.1. After the tracker equilibrates, generate a sinusoidal input by moving the cursor back and forth and determine the gain and phase. The gain is the ratio of the amplitude of the output sinusoid over...
For full credit be sure to show all work and units. 1. A 20 foot ladder...
For full credit be sure to show all work and units. 1. A 20 foot ladder leans against a vertical wall. The bottom of the ladder slides away from the wall at 2 ft/sec. a. How fast is the top of the ladder sliding down the wall when the top of the ladder is 12 feet from the ground? b. Interpret the meaning of the sign. 2. The current speed record for weight loss is 487 pounds to 130 pounds...
Problem #1 Confidence Interval for Means using the t and z Distribution.    Psychologists studied the percent...
Problem #1 Confidence Interval for Means using the t and z Distribution.    Psychologists studied the percent tip at a restaurant when a message indicating that the next day’s weather would be nice was written on the bill. Here are tips from a random sample of patrons who received such a bill, measured in percent of the total bill: 20.8     18.7     19.9     20.6     21.9     23.4     22.8     24.9     22.2     20.3   24.9     22.3     27.0     20.4     22.2     24.0     21.1     22.1     22.0     22.7 Open an...