# Result: Manning's n of 0.022
n_brownlie1981(10,0.02,1,1.1,1.2)
# Result: Manning's n of 0.018
n_brownlie1981(2.5,0.01,0.1,0.2,0.5)
# Result: Manning's n of 0.045
n_brownlie1981(15,0.003,0.6,0.9,1)
# Result: Depth must be within 0.025 and 17 m.
n_brownlie1981(20,0.003,0.6,0.9,1)
Run the code above in your browser using DataLab