[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b24bcce 06/11: Improve indentation
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b24bcce 06/11: Improve indentation |
Date: |
Thu, 15 Jul 2021 14:57:11 -0400 (EDT) |
branch: master
commit b24bcce8cee07d870fdeb60e870290050201460a
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Improve indentation
Indent blocks by a number of characters divisible by four.
---
zero.hpp | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/zero.hpp b/zero.hpp
index bcc03c0..895d2c9 100644
--- a/zero.hpp
+++ b/zero.hpp
@@ -566,10 +566,10 @@ double brent_zero
c = a; fc = fa; d = e = b - a;
extrapolate:
if(std::fabs(fc) < std::fabs(fb))
- {
- a = b; b = c; c = a;
- fa = fb; fb = fc; fc = fa;
- }
+ {
+ a = b; b = c; c = a;
+ fa = fb; fb = fc; fc = fa;
+ }
tol = 2.0 * DBL_EPSILON * std::fabs(b) + t;
m = 0.5 * (c - b);
if(tol < std::fabs(m) && 0.0 != fb)
@@ -671,10 +671,10 @@ double brent_zero_reference
c = a; fc = fa; d = e = b - a;
extrapolate:
if(std::fabs(fc) < std::fabs(fb))
- {
- a = b; b = c; c = a;
- fa = fb; fb = fc; fc = fa;
- }
+ {
+ a = b; b = c; c = a;
+ fa = fb; fb = fc; fc = fa;
+ }
tol = 2.0 * DBL_EPSILON * std::fabs(b) + t;
m = 0.5 * (c - b);
if(tol < std::fabs(m) && 0.0 != fb)
- [lmi-commits] [lmi] master updated (debc275 -> a277ed6), Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master 0090739 03/11: Rename an enumeration, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master fb3d854 02/11: Refactor instrumented reference implementation, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master 0d9b36b 05/11: Make enumerators print a useful value directly, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master 27cdaa7 01/11: Refactor, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master ff2f404 04/11: Use a more informative unit-test macro, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master 0b44a84 07/11: Reenumerate root-finding activities, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master dce3edc 08/11: Show variable shifts in optional trace, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master 5a3bd1d 10/11: Regularize whitespace, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master 70f1126 09/11: Find a root that coincides with an input bound, Greg Chicares, 2021/07/15
- [lmi-commits] [lmi] master b24bcce 06/11: Improve indentation,
Greg Chicares <=
- [lmi-commits] [lmi] master a277ed6 11/11: Uniformly test two functions in parallel, Greg Chicares, 2021/07/15