Critical analysis of the mean-field approximation for the calculation of the magnetic moment in the Friedel-Anderson impurity model