orlandpm / Math-for-Programmers

Source code for the book, Math for Programmers
818 stars 388 forks source link

Missing return in Curried instantaneous flow rate function #12

Open michaelmiscanuk opened 3 years ago

michaelmiscanuk commented 3 years ago

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