Generalize getUnaryFloatFunction to handle any FP unary function, automatically