<div dir="ltr"><span style="font-size:12.8000001907349px">I've proposed a change to trapz, so that bin widths (`x` array deltas) are always considered positive.  This allows monotonically decreasing `x` sequences to be used, in addition to monotonically increasing sequences.</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I am open to the idea of accepting non-monotonic sequences as well, and performing a sort on `y` to make `x` monotonic, regardless of its input form, but I think this may make the code more complex than necessary.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thoughts and suggestions are welcome.</div><div style="font-size:12.8000001907349px"><br><div><a href="https://github.com/fizyxnrd/numpy/compare/master...trapz_binwidth_fix" target="_blank">https://github.com/fizyxnrd/numpy/compare/master...trapz_binwidth_fix</a></div></div></div>