Initial Basics – Algebra – Problem #16
IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive
Problem Statement
In this probiem, you will compute the derivative of a degree polynomial of a single variable. Assume that its coefficients are positive integers. Read 6 cocfficients as inputs from the keyboard. Display the polynomial, and then compute and display the derivative polynomial. A sample input and output below; stick to the format shown below. Enter coefficient of x0: 5 Enter coefficient of x^1: 2 Enter coefficient of x^2:2 Enter coefficient of x^3:7 Enter coefficient of x^4:0 Enter coefficient of x^5:3 Polynomial: 3x^5 +0*x^4+7*x^3-2*x^2+ 2*x +5 Derivative: 15*1^4 + 0"1*3+ 21*1^2-4*x +2