Improved integration example by clipping to limits
" return np.exp(np.sin(xs+np.pi/time))\n",
"\n",
"def integral(limit, time):\n",
- " limit = -3 if limit is None else limit\n",
+ " limit = -3 if limit is None else np.clip(limit,-3,3)\n",
" curve = hv.Curve((xs, function(xs, time)))[limit:]\n",
" area = hv.Area((xs, function(xs, time)))[:limit]\n",
" summed = area.dimension_values('y').sum() * 0.015 # Numeric approximation\n",
