Function 'get_ang_momentum' - calculation of the angular momentum.