All problems
Fundamental Theorem Net Change
Problem
The fundamental theorem of calculus gives the integral of f' over [a, b] as f(b) - f(a).
Given polynomial coefficients, a, and b, return the net change.
Hint
Evaluate the antiderivative at both endpoints and subtract.
Test cases
case 1
in: [[1,2,3],0,2]
expected: 16
case 2
in: [[0,0,1],-1,1]
expected: 0
case 3
in: [[4],1,9]
expected: 0
Starter codePython
def ftc_net_change(coeffs, a, b):
# Your code here
pass3 test cases · run your code against them in the editor