Replace function <fmin(a,b)>  by classic ternary operator