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.
The roots (solutions) to the quadratic equation ax2 +bx+c = 0 is given by the well-known...
The roots (solutions) to the quadratic equation ax2 +bx+c = 0 is given by the well-known formula x = 2a −b ± √b −4ac 2 Write a python program that takes the three coefficients a, b, and c as input, computes and displays the solutions according to the aforementioned formula. Note the ± in the numerator means there are two answers. But this will not apply if a is zero, so that condition must be checked separately; design your program...
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...
Problem Definition: Problem: Given an array of integers find all pairs of integers, a and b,...
Problem Definition: Problem: Given an array of integers find all pairs of integers, a and b, where a – b is equal to a given number. For example, consider the following array and suppose we want to find all pairs of integers a and b where a – b = 3 A = [10, 4, 6, 16, 1, 6, 12, 13] Then your method should return the following pairs: 4, 1 15, 12 13, 10 A poor solution: There are...
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...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT