def _fletcher_reeves(gradient, derivative, grad_norm2, p, old_gradient,
    old_derivative, old_grad_norm2):
    """
    Compute the Flether-Reeves update parameter.
    """
    beta = grad_norm2 / old_grad_norm2
    return beta
