function value = nasty ( x ) value = 1.0 + 3.0 * x.^2 + log ( ( pi - x ).^2 ) / pi^4;