A generalization of regula falsi