We're looking for zeroes of f, so I took 0 for the correct value instead of estimating it from `a'`. Perhaps some comment is due; i'm going to add a small clarification.