Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("To make them unequal enter a index and coefficent to change:");
- int index=keyb.nextInt();
- input=keyb.nextDouble();
- poly2.coefficients[index]=input;
- System.out.println(poly2.coefficients[index]);
- System.out.print("Polynomials are equal: "+poly1.equals(poly2));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement