log_regression C