Let p (x ) = a 0 + a 1 x + … +an −1 xn −1 + an xn be a polynomial of degree n , where ai , are real (or complex) numbers and n is a nonnegative integer. The derivative of p (x ), written p ′ (x ), is defined to be p ′ (x ) = a 1 + 2a 2 x 2 +… + nan xn −1 . If p (x ) is constant, then p′ (x) = 0. Overload the operator ~ as a member function for the class polynomialType so that ~ returns the derivative of a polynomial.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.