Question: Write the code for the rational zero test in the following java program: import java.util.ArrayList; import java.util.List; public class Poly{ private List coefficients; private List
Write the code for the rational zero test in the following java program:
import java.util.ArrayList; import java.util.List;
public class Poly{ private List roots.add(root1); roots.add(root2); } public int rationalZeroTest(){ int root=0; return root; } public void synthetic(){ } public void factor(){ if(polynomial.size() == 3){ quadratic(); } int root = rationalZeroTest(); synthetic(); } public void displayRoots(){ for(int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
