Initial Basics – Algebra – Problem #16

IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive

Difficulty: medium

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

Back to Lab Problems
Initial Basics/Algebra/Problem #16

Lab Problem Statement

Specifications & Problem DetailsIIT Kharagpur PDS Archive
Loading question...

Interactive C Compiler · Problem #16

WASM In-Browser

Runs directly on your machine · Zero remote server dependency

Compiler downloads on first Run (large, saved in your browser after that)
main.cCtrl + Enter to run
1
2
3
4
5
6
7
Input (stdin)given to scanf / cin
Output

Output appears here. Press Run to compile and execute.