From a0c1fc412ba52e8a08951c4858e30660f24d2f3f Mon Sep 17 00:00:00 2001
From: GUNJ JOSHI <gunjjoshi8372@gmail.com>
Date: Sat, 13 Jul 2024 10:55:51 +0530
Subject: [PATCH 1/4] docs: update boost version in math/base/special/digamma

---
 lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js | 2 +-
 lib/node_modules/@stdlib/math/base/special/digamma/src/main.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js b/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
index c847a65e8fc0..8dd7c1d8f52d 100644
--- a/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
+++ b/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
@@ -18,7 +18,7 @@
 *
 * ## Notice
 *
-* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html}. The implementation follows the original but has been modified for JavaScript.
+* The original C++ code and copyright notice are from the [Boost library]{@link https://www.boost.org/doc/libs/1_85_0/boost/math/special_functions/digamma.hpp}. The implementation follows the original but has been modified for JavaScript.
 *
 * ```text
 * (C) Copyright John Maddock 2006.
diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c b/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
index bd1ed84759f6..54049b38d317 100644
--- a/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
+++ b/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
@@ -18,7 +18,7 @@
 *
 * ## Notice
 *
-* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html}. The implementation follows the original but has been modified for JavaScript.
+* The original C++ code and copyright notice are from the [Boost library]{@link https://www.boost.org/doc/libs/1_85_0/boost/math/special_functions/digamma.hpp}. The implementation follows the original but has been modified for JavaScript.
 *
 * ```text
 * (C) Copyright John Maddock 2006.

From 2b9a7bcfabd4cb809b4b4041ead9b0a817dc0084 Mon Sep 17 00:00:00 2001
From: GUNJ JOSHI <gunjjoshi8372@gmail.com>
Date: Sat, 13 Jul 2024 10:58:46 +0530
Subject: [PATCH 2/4] Revert "docs: update boost version in
 math/base/special/digamma"

This reverts commit a0c1fc412ba52e8a08951c4858e30660f24d2f3f.
---
 lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js | 2 +-
 lib/node_modules/@stdlib/math/base/special/digamma/src/main.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js b/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
index 8dd7c1d8f52d..c847a65e8fc0 100644
--- a/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
+++ b/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
@@ -18,7 +18,7 @@
 *
 * ## Notice
 *
-* The original C++ code and copyright notice are from the [Boost library]{@link https://www.boost.org/doc/libs/1_85_0/boost/math/special_functions/digamma.hpp}. The implementation follows the original but has been modified for JavaScript.
+* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html}. The implementation follows the original but has been modified for JavaScript.
 *
 * ```text
 * (C) Copyright John Maddock 2006.
diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c b/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
index 54049b38d317..bd1ed84759f6 100644
--- a/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
+++ b/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
@@ -18,7 +18,7 @@
 *
 * ## Notice
 *
-* The original C++ code and copyright notice are from the [Boost library]{@link https://www.boost.org/doc/libs/1_85_0/boost/math/special_functions/digamma.hpp}. The implementation follows the original but has been modified for JavaScript.
+* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html}. The implementation follows the original but has been modified for JavaScript.
 *
 * ```text
 * (C) Copyright John Maddock 2006.

From 44aa1b51a576a7588249e7c1f03af65779da9d0a Mon Sep 17 00:00:00 2001
From: GUNJ JOSHI <gunjjoshi8372@gmail.com>
Date: Sat, 13 Jul 2024 11:02:03 +0530
Subject: [PATCH 3/4] docs: update boost version in math/base/special/digamma

---
 lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js | 2 +-
 lib/node_modules/@stdlib/math/base/special/digamma/src/main.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js b/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
index c847a65e8fc0..8dd7c1d8f52d 100644
--- a/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
+++ b/lib/node_modules/@stdlib/math/base/special/digamma/lib/main.js
@@ -18,7 +18,7 @@
 *
 * ## Notice
 *
-* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html}. The implementation follows the original but has been modified for JavaScript.
+* The original C++ code and copyright notice are from the [Boost library]{@link https://www.boost.org/doc/libs/1_85_0/boost/math/special_functions/digamma.hpp}. The implementation follows the original but has been modified for JavaScript.
 *
 * ```text
 * (C) Copyright John Maddock 2006.
diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c b/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
index bd1ed84759f6..54049b38d317 100644
--- a/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
+++ b/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
@@ -18,7 +18,7 @@
 *
 * ## Notice
 *
-* The original C++ code and copyright notice are from the [Boost library]{@link http://www.boost.org/doc/libs/1_53_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html}. The implementation follows the original but has been modified for JavaScript.
+* The original C++ code and copyright notice are from the [Boost library]{@link https://www.boost.org/doc/libs/1_85_0/boost/math/special_functions/digamma.hpp}. The implementation follows the original but has been modified for JavaScript.
 *
 * ```text
 * (C) Copyright John Maddock 2006.

From f8e9676af18fea5536663dd6c8957f215fcbd5ab Mon Sep 17 00:00:00 2001
From: GUNJ JOSHI <gunjjoshi8372@gmail.com>
Date: Sat, 13 Jul 2024 11:51:57 +0530
Subject: [PATCH 4/4] docs: use static, add line break, correct function name
 in readme

---
 .../@stdlib/math/base/special/digamma/README.md           | 8 ++++----
 .../@stdlib/math/base/special/digamma/src/main.c          | 8 +++++---
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/README.md b/lib/node_modules/@stdlib/math/base/special/digamma/README.md
index ab46b4a40f75..1d10be62bd99 100644
--- a/lib/node_modules/@stdlib/math/base/special/digamma/README.md
+++ b/lib/node_modules/@stdlib/math/base/special/digamma/README.md
@@ -141,15 +141,15 @@ for ( i = 0; i < 10; i++ ) {
 #include "stdlib/math/base/special/digamma.h"
 ```
 
-#### digamma( x )
+#### stdlib_base_digamma( x )
 
 Evaluates the [digamma function][digamma-function].
 
 ```c
-double out = digamma( -2.5 );
+double out = stdlib_base_digamma( -2.5 );
 // returns ~1.103
 
-out = digamma( 1.0 );
+out = stdlib_base_digamma( 1.0 );
 // returns ~-0.577
 ```
 
@@ -158,7 +158,7 @@ The function accepts the following arguments:
 -   **x**: `[in] double` input value.
 
 ```c
-double digamma( const double x );
+double stdlib_base_digamma( const double x );
 ```
 
 </section>
diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c b/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
index 54049b38d317..cd64ee4659a0 100644
--- a/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
+++ b/lib/node_modules/@stdlib/math/base/special/digamma/src/main.c
@@ -62,7 +62,9 @@ static double polyval_p( const double x ) {
 	return 0.08333333333333333 + (x * (-0.008333333333333333 + (x * (0.003968253968253968 + (x * (-0.004166666666666667 + (x * (0.007575757575757576 + (x * (-0.021092796092796094 + (x * (0.08333333333333333 + (x * -0.4432598039215686)))))))))))));
 }
 
-// END: polyval_p// BEGIN: rational_pq
+// END: polyval_p
+
+// BEGIN: rational_pq
 
 /**
 * Evaluates a rational function (i.e., the ratio of two polynomials described by the coefficients stored in \\(P\\) and \\(Q\\)).
@@ -111,7 +113,7 @@ static double rational_pq( const double x ) {
 * @param x    input value
 * @returns    function value
 */
-double asymptoticApprox( const double x ) {
+static double asymptoticApprox( const double x ) {
 	double y;
 	double z;
 	double xc;
@@ -129,7 +131,7 @@ double asymptoticApprox( const double x ) {
 * @param x    input value
 * @returns    function value
 */
-double rationalApprox( const double x ) {
+static double rationalApprox( const double x ) {
 	double g;
 	double r;