orlandpm/Math-for-Programmers

Missing return in Curried instantaneous flow rate function

michaelmiscanuk opened this issue · 0 comments

Hi, there is a missing return in function on page 320. (Took me some time to figure out).
Should be:

def get_flow_rate_function(v):
    def flow_rate_function(t):
        return instantaneous_flow_rate(v,t)
    return flow_rate_function