natural: max |f - cos| = 1.4e-02, max |f' + sin| = 1.5e-01, f''(0) = 0.000 clamped: max |f - cos| = 2.0e-04, max |f' + sin| = 1.2e-03, f''(0) = -1.023 integral from 0 to pi/2: 0.999885 (exact 1)