Optional Project 27: Derivative of Polynomial

Disclaimer: This project involves a Calculus topic (derivatives).  If you haven't taken Calclulus before, you would probably want to skip this one.

The formula above is the power rule for finding the derivative.   We can use the power rule to find the derivative of any polynomial.

f(x) = 3x^4 + 5x^2 - 4

f'(x) = 12x^3 + 10x

Optional Project 27: The variable 'co' has been initialized.  

co represents the coefficients of the polynomial we are finding the derivative of (from lowest power to highest power)

co = [-4, 0, 5, 0, 3] for the example above

Task: Initialize the value of 'deriv' that represents the coefficients of the derivative  (from lowest power to highest power)

deriv would be [0, 10, 0, 12] for the example above.

Note: use the push command (i.e. deriv.push("some number")) to add values to the end of the deriv array.

Note: If you are coding in Java, you can assume 'deriv' has already been declared as an ArrayList. 

**If your code works for 5 test cases, you can enter your e-mail address

Universal Computational Math Methods:

pow(5,2) returns 25.0

abs(-3.0) returns 3

sqrt(49.0) returns 7.0