![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 04.03.2021 20:10 dnsnmcmdmxmx
In Java, design an interface named Polynomial. This is your polynomial abstract data type. It should have the following method signatures:
A method addTerm that takes a coefficient and a power (both integral numbers) and adds the resulting term to the polynomial. (in order to build a polynomial term-by-term.) It should throw an IllegalArgumentException if a negative power is passed to it.
A method removeTerm that takes a power and removes any and all terms in the polynomial with that power.
A method getDegree that returns the degree of this polynomial.
A method getCoefficient that takes a power and returns the coefficient for the term with that power.
A method evaluate that takes a double-precision decimal number and returns a double-precision result.
A method add that takes another Polynomial object and returns the polynomial obtained by adding the two polynomials. Ensure that this method does not mutate either polynomial. The implementation may assume that the given Polynomial is the of the same concrete class as this object; if it is a different class, the method may throw an IllegalArgumentException.
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 01:10, kristofwr3444
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:30, eddsworldfrantic
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
You know the right answer?
In Java, design an interface named Polynomial. This is your polynomial abstract data type. It should...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 07.01.2020 08:31
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 07.01.2020 08:31
![Konu](/tpl/images/cats/mat.png)
Mathematics, 07.01.2020 08:31
![Konu](/tpl/images/cats/istoriya.png)
History, 07.01.2020 08:31
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mkx.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)