arithmetic and geometric mean