Question

In: Advanced Math

To find a root of a polynomial equation, we can use an iterative process. We start...

To find a root of a polynomial equation, we can use an iterative process.
We start with an initial guess for the value of the root, x 0 , plug it in to the iterative formula and
solve for x 1 . Then we plug x 1 back into the iterative formula and solve for x 2 . We continue this
process until x n+1 and x n are equal to a specified number of decimal places. When this happens,
this is our approximate solution to the polynomial equation.
We will be solving for a root of a cubic equation:
f(x n ) = c3 x n 3 + c2 x n 2 + c1 x n + c0
where c3, c2, c1 and c0 are the coefficients of each polynomial term.
The iterative formula we will use is:
x n+1 = x n - ( f(x n ) / f '(x n ) )
where f '(x n )is the derivative of f(x n )

Define a public static method named cubicRoot that accepts the coefficients of the cubic
equation and an initial guess for the root . This method computes and returns a root of the cubic
equation by using the iterative process described below (you must use a while loop):
1. Start with the guess for the root passed to the method as x n

2. Compute x n+1 using the formula above Note: you can write the equation for the
derivative in terms of the coefficients, exponents and x terms.
3. Compare x n+1 and x n
i. if these are equal within 4 decimal places, then return the value
ii. If not, x n should be updated - repeat Step 2

in java code

Solutions

Expert Solution

Hope You understood it

Pls like it


Related Solutions

Does every polynomial equation have at least one real root? a. Why must every polynomial equation...
Does every polynomial equation have at least one real root? a. Why must every polynomial equation of degree 3 have at least one real root? b. Provide an example of a polynomial of degree 3 with three real roots. How did you find this? c. Provide an example of a polynomial of degree 3 with only one real root. How did you find this?
Let . If we use Accelerated Newton-Raphson method to approximate the root of the equation ,...
Let . If we use Accelerated Newton-Raphson method to approximate the root of the equation , which of the following(s) is/are ture: (I)  is multiple root of order (II) Accelerated Newton-Raphson formula is : (III) The sequence  obtained by the Accelerated Newton-Raphson method converge to the root  quadratically.
When can and can't we use the equation the equation ΔX=v^2sin(2θ)/g to find the horizontal displacement...
When can and can't we use the equation the equation ΔX=v^2sin(2θ)/g to find the horizontal displacement in projectile motion problems?
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start...
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start by drawing a graph to find initial approximations. (Enter your answers as a comma-separated list.) 6e−x2 sin(x) = x2 − x + 1
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start...
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start by drawing a graph to find initial approximations. (Enter your answers as a comma-separated list.) −2x7 − 4x4 + 8x3 + 6 = 0
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start...
Use Newton's method to find all solutions of the equation correct to eight decimal places. Start by drawing a graph to find initial approximations. (Enter your answers as a comma-separated list.) 4e-x2 sin(x) = x2 − x + 1
Find the positive root of the equation x^3-×-11 using inspection method.
Find the positive root of the equation x^3-×-11 using inspection method.
For the following project pick the development process you would use (Iterative, Evolutionary, Agile) and explain...
For the following project pick the development process you would use (Iterative, Evolutionary, Agile) and explain why a.) A small Accounting company website b.) step tracker c.) Flight instrument d.) mobile app game e.) a tax return submission system
use newtons method with value of x1=3 to approximate the root of equation to 6 decimal...
use newtons method with value of x1=3 to approximate the root of equation to 6 decimal places x^4=4x^2+25
Use Newton's method to approximate the indicated root of the equation correct to six decimal places....
Use Newton's method to approximate the indicated root of the equation correct to six decimal places. The root of x4 − 2x3 + 4x2 − 8 = 0 in the interval [1, 2] x = ?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT