public static double Max(double[] num)
	{
		double max = Double.MIN_VALUE;
		double number = 0;

		for (int i = 0; i < num.length; i++)
		{
			number = num[i];

			if (number > max)
				max = number;
		}

		return max;
	}