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/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..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 @@ -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. @@ -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;