SortedSet<Double> g(Set<Double> a, Set<Double> b){
		SortedSet<Double> r = new TreeSet<Double>();
		for(Double j : a){
			for(Double k : b){
				for(int i = 1; i <= 4; i++){
					r.add(f(j,k,i));
				}
			}
		}
		return r;
	}