lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 776827ee 4/8: Avoid typewriter-style citation


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 776827ee 4/8: Avoid typewriter-style citations
Date: Thu, 19 May 2022 13:29:00 -0400 (EDT)

branch: master
commit 776827eea89f3b126068701609f60633c3951822
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Avoid typewriter-style citations
    
    In the typewriter era, a distinction was made between citations for
    _Books_ and "Articles". The problem is that "_Books_" looks like a
    reserved name. Changed '_' to '"' to prevent that confusion.
    
    These changes are committed separately so that a better idea can be
    used instead, if one is found. "𝘉𝘰𝘰𝘬𝘴" seems to confound vim.
---
 commutation_functions_test.cpp | 2 +-
 ihs_irc7702.cpp                | 2 +-
 ul_utilities.cpp               | 2 +-
 zero.hpp                       | 4 ++--
 zero_test.cpp                  | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/commutation_functions_test.cpp b/commutation_functions_test.cpp
index 4cb43e15..7ce12e9a 100644
--- a/commutation_functions_test.cpp
+++ b/commutation_functions_test.cpp
@@ -606,7 +606,7 @@ void OLCommFnsTest()
 /// A no-load account value is the same thing as a terminal reserve
 /// calculated on a monthly basis. The negative first value may seem
 /// surprising at first glance, but see Donald B. Warren's article
-/// "A Discussion of Negative Reserves" in _The Actuary_, Volume 2,
+/// "A Discussion of Negative Reserves" in "The Actuary", Volume 2,
 /// Number 8, October 1968, page 4, which says negative reserves can
 /// occur "in the first policy year at age 0 on a whole life plan".
 
diff --git a/ihs_irc7702.cpp b/ihs_irc7702.cpp
index 7ed2e747..10e6addd 100644
--- a/ihs_irc7702.cpp
+++ b/ihs_irc7702.cpp
@@ -46,7 +46,7 @@
 // defined type; it guarantees that the object will be initialized
 // before its first use. C programmers who wonder why we don't just
 // declare a static global variable are referred to Stroustrup,
-// _The C++ Programming Language_, 3rd edition (Stroustrup3),
+// "The C++ Programming Language", 3rd edition (Stroustrup3),
 // section B.2.3, which notes that ISO standard C++ deprecates
 // such usage of 'static'.
 //
diff --git a/ul_utilities.cpp b/ul_utilities.cpp
index 7bc53da8..5b1ea956 100644
--- a/ul_utilities.cpp
+++ b/ul_utilities.cpp
@@ -46,7 +46,7 @@
 /// age might therefore change. The billing interval is any of the
 /// customary life-insurance payment modes. For the maximum billing
 /// period of one year, the demographic notation used on page 129 of
-/// Batten, _Mortality Table Construction_, 1978 (ISBN 0-13-601302-3)
+/// Batten, "Mortality Table Construction", 1978 (ISBN 0-13-601302-3)
 /// would be:
 ///   - (delta)premium(x)   [here, prem_ante] for monthly charges at
 ///     age x from the bill date to the anniversary age change;
diff --git a/zero.hpp b/zero.hpp
index 5b773f0a..6f1c481f 100644
--- a/zero.hpp
+++ b/zero.hpp
@@ -235,7 +235,7 @@ inline double binary64_midpoint(double d0, double d1)
 /// of a true zero.
 ///
 /// Brent's algorithm with GWC modifications described below. See:
-/// R. P. Brent, _Algorithms for Minimization without Derivatives_
+/// R. P. Brent, "Algorithms for Minimization without Derivatives"
 /// ISBN 0-13-022335-2
 ///
 /// Rationale for choice of algorithm
@@ -244,7 +244,7 @@ inline double binary64_midpoint(double d0, double d1)
 /// of a higher-order method when appropriate. We recommend it as the
 /// method of choice for general one-dimensional root finding where a
 /// function's values only (and not its derivative or functional form)
-/// are available." --Press et al., _Numerical Recipes_ (3rd ed. 2007)
+/// are available." --Press et al., "Numerical Recipes" (3rd ed. 2007)
 ///
 /// Numerous papers claim to improve on Brent's method. TOMS 748
 /// purports to require about five percent fewer function evaluations,
diff --git a/zero_test.cpp b/zero_test.cpp
index 2256e3e4..4e44cc7d 100644
--- a/zero_test.cpp
+++ b/zero_test.cpp
@@ -989,7 +989,7 @@ void test_various_functions()
     test_a_decimal_function(f03, root_03, -0.01, 0.8, 15     , __LINE__, 16);
     test_a_function        (f03, root_03, -0.01, 0.8, 1.0e-15, __LINE__);
 
-    // The next three examples are from _Computational Physics_,
+    // The next three examples are from "Computational Physics",
     // Philipp O. J. Scherer, 2nd ed., ISBN 978-3-319-00400-6,
     // page 96; number of evaluations estimated from graphs as two
     // plus apparent number of iterations, to account for required



reply via email to

[Prev in Thread] Current Thread [Next in Thread]