We study the shape of the tail of a heap of granular material. A simpl
e theoretical argument shows that the tail adds a logarithmic correcti
on to the slope given by the angle of repose. This expression is in go
od agreement with experiments. We present a cellular automaton that co
ntains gravity, dissipation, and surface roughness and its simulation
also gives the predicted shape.