Compute valid subgradients for absolute value, ReLU, and maximum functions at smooth and nonsmooth points.