f(a,b)=b/((((1/a)-2)*(1-b))+1)-(a^(log(b)/log(0.5))) with b from 0 to 1