Files
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

6 lines
140 B
Python

def trapezoid(y, h):
total = (y[0] + y[len(y) - 1]) / 2.0
for i in range(1, len(y) - 1):
total += y[i]
return total * h