public static double mean(double x, double y, double z) { return (x + y + z) / 3.0; }