From 0883adb2b52813d32938f9a0fc9614ac0a2dc044 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 2 Jul 2018 14:20:42 +0200 Subject: [PATCH] Provide a more verbose name for a variable --- examples/step-27/step-27.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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); -- 2.39.5