For a polynomial with an undefined coefficient.
In this problem you should evaluate its derivative. Remember
that derivative is defined as:
All inputs and outputs will be integers, as detailed below.
Input:
The code will have several lines of input.
The first line will contain one integer - a value for x.
The next few lines will contain several
integers a0 ,a1, ...
, an-1, an ,which represent a set of polynomial
coefficients. Finally, “End” will be entered to indicate the end of
the input.
Output:
Your program should evaluate and output the derivative of
polynomial for the given value x.
Sample Input1 : Sample Input: 7 2 NN 2 N 0 3 -10 3 End 0 1 End Sample output1 : Sample output1 : 18 24
For a polynomial with an undefined coefficient. In this problem you should evaluate its derivative. Remember that deriva
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am