public static Double beersLaw(Double absorbtivity, Double constant, Double concentration)
	{
		boolean[] nulls = new boolean[3];
		nulls[0] = (absorbtivity == null);
		nulls[1] = (constant == null);
		nulls[2] = (concentration == null);
		
		int nullCount = 0;
		for(int k = 0; k < nulls.length; k++)
		{
			if(nulls[k])
				nullCount++;
		}
		
		if(nullCount != 1)
			return null;
		
		double result = 0;
		
		if(nulls[0])
		{
			// absorbtivity is unknown
			result = constant*concentration;
		}
		else if(nulls[1])
		{
			// constant is unknown
			result = absorbtivity/concentration;
		}
		else if(nulls[2])
		{
			// concentration is unknown
			result = absorbtivity/constant;
		}
		
		return result;
	}