Links back to test-note.
The identity holds even when .
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2 * np.pi, 200)
plt.plot(x, np.sin(x))
plt.show()
Figure 1: A sine wave, executed at render time
print(f"computed at render time: {np.trapezoid(np.sin(x), x):.4f}")computed at render time: 0.0000