Question: WRITE CODE IN PYTHON please. Automatic differentiation of polynomials. Realize it in this way. Use the 'input' function to get a polynomial and a x

WRITE CODE IN PYTHON please.

WRITE CODE IN PYTHON please. Automatic differentiation of polynomials. Realize it in

Automatic differentiation of polynomials. Realize it in this way. Use the 'input' function to get a polynomial and a x value (which means two 'input' functions in your program). An input polynomial should have a form of - a*x**n + b*x**(n-1)+... + constant 3*x**2 + 2*x +1 7.1*x**3+12.345*X** 0 5.3 * x ** 10 - 8.0 * x ** 1_-256 * x It shouldn't contain any variables except x. (The coefficients a, b,... and the exponent n in the above form must be just numbers. Exponents must be nonnegative integers.) You must not allow any parentheses in the input polynomial.- Use the methods of string type and the type conversion functions to calculate the output differentiation value.- Your program must be able to handle strange inputs by using the 'try-except-else' structure.-Test your program with your inputs. Add comments describing your test results

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!