From: Daniel Arndt Date: Mon, 2 Jul 2018 12:20:42 +0000 (+0200) Subject: Provide a more verbose name for a variable X-Git-Tag: v9.1.0-rc1~952^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6870%2Fhead;p=dealii.git Provide a more verbose name for a variable --- diff --git a/examples/step-27/step-27.cc b/examples/step-27/step-27.cc index 81120240d1..8a1871d25d 100644 --- a/examples/step-27/step-27.cc +++ b/examples/step-27/step-27.cc @@ -715,11 +715,10 @@ namespace Step27 std::log(2.0 * numbers::PI * std::sqrt(1. * res.first[f])); } - // We have to calculate the logarithms of absolute - // values of coefficients and use it in linear regression fit to - // obtain $\mu$. - for (double &f : res.second) - f = std::log(f); + // We have to calculate the logarithms of absolute values of + // coefficients and use it in a linear regression fit to obtain $\mu$. + for (double &residual_element : res.second) + residual_element = std::log(residual_element); std::pair fit = FESeries::linear_regression(ln_k, res.second);