stationarity and regularity of real-valued functions