FEYN CALC SYMBOL

Completes


the square of a second order polynomial in the momentum x. CompleteSquare[a p^2+b p+c, p] -b^2/(4 a)+c+a (b/(2 a)+x)^2. CompleteSquare[a p^2+b p+c, p, q] {-b^2/(4 a)+c+a q^2, qb/(2 a)+p}.