monfn function

Evaluate the a monotone function