import numpy as np from math import * import sys import matplotlib.pyplot as plt def INTERSEC(x1,y1,x2,y2,el): xx=1.0e10 if 0.010s} {1:>10s} {2:>10s} {3:>10s}'.format('Q','WL','A','S')) rn=0.03 # Manning roughness coefficient ymin=72 ymax=85 dy=0.1 yy=np.arange(ymin,ymax+dy,dy) for el in yy: S=0.0 A=0.0 for i in range(0,nn-1): x1=x[i] y1=y[i] x2=x[i+1] y2=y[i+1] xx=INTERSEC(x1,y1,x2,y2,el) dS=0.0 dA=0.0 if y1