// squareRootsAndSum calculates the sum of squares for a given lagrangian.
squareRootsAndSum calculates the sum of squares for a given lagrangian.
// squareRootsAndSum calculates the sum of squares for a given lagrangian .
func squareRootsAndSum(w *lagrange) *big.Int {
	sum := new(big.Int)
	for _, root := range w {
		sum.Add(sum, new(big.Int).Mul(root, root))
	}
	return sum
}
func squareRootsAndSum ( w * lagrange ) * big . Int { sum := new ( big . Int ) for _ , root := range w { sum . Add ( sum , new ( big . Int ) . Mul ( root , root ) ) } return sum }
squareRootsAndSum calculates the sum of squares for a given lagrangian.
squareRootsAndSum calculates the sum of squares for a given lagrangian .