Question: This class will contain some calculus we can perform on a Poly object. You do not need to define a constructor. This class will behave

This class will contain some calculus we can perform on a Poly object. You do not need to define a constructor. This class will behave as a utility class in the sense that we do not need to create an instance of the class to access its members. java.lang.Math is another example of this kind of class. To make this possible, we simply need to define a member as static. PolyCalc has a static method called differentiate() . This method should calculate the coefficients for the derivative of the supplied Poly object. It should then create a new Poly object from those coefficients and return it. The "new coefficients" array should ALWAYS be the same length as the original array. Also, you do not need to round coefficients. PolyCalc has a static method called integrate() . This method should calculate the coefficients for the integral of the supplied Poly object. It should then create a new Poly object from those coefficients and return it. Assume the integration constant C is always 0. The "new coefficients" array should ALWAYS be the same length + 1 as the original array (integrals go up an order). It does not matter if the original array is [0, 0, 0, 1], the new array should then be [0, 0, 0, 1, 0]. Also, you do not need to round coefficients.

show code class please

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!