def _hestenes_stiefel(gradient, derivative, grad_norm2, p, old_gradient,
    old_derivative, old_grad_norm2):
    """
    Computes the 'standard cg' beta 
    """
    y = derivative - old_derivative
    beta = y.apply(gradient) / y.apply(p)
    return beta
