Postgresql Declare Variable For Angular Momentum Equation