All problems
Three Factor Product Derivative
Problem
For h(x) = f(x) g(x) p(x), the derivative is f' g p + f g' p + f g p'.
Given the values f, g, p and their derivatives at a point, return h'.
Hint
Differentiate one factor at a time and sum the three products.
Test cases
case 1
in: [1,2,3,4,5,6]
expected: 68
case 2
in: [0,1,1,1,1,1]
expected: 1
case 3
in: [2,3,0,5,4,1]
expected: 40
Starter codePython
def three_factor_product_derivative(f, fp, g, gp, p, pp):
# Your code here
pass3 test cases · run your code against them in the editor