Question: IN JAVA and ATTACH THE OUTPUT PLEASE!!! I WILL UPVOTE FOR THE RIGHT ANSWER Make a class called Poly that implements addition, negation, subtraction, and
IN JAVA and ATTACH THE OUTPUT PLEASE!!! I WILL UPVOTE FOR THE RIGHT ANSWER
Make a class called Poly that implements addition, negation, subtraction, and any other incomplete method shown in the Poly starter code. ( I attached the link of starter code and driver along with this question so please take a look before coding)
Link: https://github.com/shinon1604/Yuu/tree/main
A polynomial is an arithmetic expression of the form:
anxn + + a2x2 + a1x1 + a0
where x is a variable that can take on different numeric values and an , , a2, a1 , and a0 are constants called the coefficients of the polynomial. The highest exponent with non-zero coefficient, n, is called the degree of the polynomial. For example, 0x2 + 4x + 5 is normally written as 4x + 5 and has degree 1.
Note: A polynomial whose coefficients are all zero has degree -1.
One way to represent a polynomial is to use an array to hold the coefficients. A polynomial of degree n has n + 1 coefficients. An array of size k can hold the coefficients for a polynomial of degree k 1 (or a smaller degree).
For extra credit: implement multiplication and division (both quotient and remainder).
Coefficients are in reverse order in the array.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
