mv sum and product to sqrt