From 6d068c9b598446acd2c8291fec2637793a38b905 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Thu, 14 Mar 2024 02:26:38 +0000 Subject: [PATCH] Update artifacts --- math/base/special/bernoulli/coverage.ndjson | 1 + math/base/special/bernoulli/index.html | 146 ++++++++ math/base/special/bernoulli/index.js.html | 259 +++++++++++++ math/base/special/bernoulli/main.js.html | 385 ++++++++++++++++++++ math/base/special/bernoulli/native.js.html | 316 ++++++++++++++++ 5 files changed, 1107 insertions(+) create mode 100644 math/base/special/bernoulli/coverage.ndjson create mode 100644 math/base/special/bernoulli/index.html create mode 100644 math/base/special/bernoulli/index.js.html create mode 100644 math/base/special/bernoulli/main.js.html create mode 100644 math/base/special/bernoulli/native.js.html diff --git a/math/base/special/bernoulli/coverage.ndjson b/math/base/special/bernoulli/coverage.ndjson new file mode 100644 index 000000000..a9e50e9a0 --- /dev/null +++ b/math/base/special/bernoulli/coverage.ndjson @@ -0,0 +1 @@ +[235,235,100,14,14,100,2,2,100,235,235,100,"0c78f2f502062c3d5bd6c8ac857cb2203fd17f7f","2024-03-13 22:24:46 -0400"] diff --git a/math/base/special/bernoulli/index.html b/math/base/special/bernoulli/index.html new file mode 100644 index 000000000..9d83d9655 --- /dev/null +++ b/math/base/special/bernoulli/index.html @@ -0,0 +1,146 @@ + + + + + + Code coverage report for math/base/special/bernoulli/lib + + + + + + + + + +
+
+

All files math/base/special/bernoulli/lib

+
+ +
+ 100% + Statements + 235/235 +
+ + +
+ 100% + Branches + 14/14 +
+ + +
+ 100% + Functions + 2/2 +
+ + +
+ 100% + Lines + 235/235 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
index.js +
+
100%58/58100%1/1100%0/0100%58/58
main.js +
+
100%100/100100%11/11100%1/1100%100/100
native.js +
+
100%77/77100%2/2100%1/1100%77/77
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/bernoulli/index.js.html b/math/base/special/bernoulli/index.js.html new file mode 100644 index 000000000..f8267f2b3 --- /dev/null +++ b/math/base/special/bernoulli/index.js.html @@ -0,0 +1,259 @@ + + + + + + Code coverage report for math/base/special/bernoulli/lib/index.js + + + + + + + + + +
+
+

All files / math/base/special/bernoulli/lib index.js

+
+ +
+ 100% + Statements + 58/58 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 58/58 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +591x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+/**
+* Compute the nth Bernoulli number.
+*
+* @module @stdlib/math/base/special/bernoulli
+*
+* @example
+* var bernoulli = require( '@stdlib/math/base/special/bernoulli' );
+*
+* var y = bernoulli( 0 );
+* // returns 1.0
+*
+* y = bernoulli( 1 );
+* // returns 0.0
+*
+* y = bernoulli( 2 );
+* // returns ~0.166
+*
+* y = bernoulli( 3 );
+* // returns 0.0
+*
+* y = bernoulli( 4 );
+* // returns ~-0.033
+*
+* y = bernoulli( 5 );
+* // returns 0.0
+*
+* y = bernoulli( 20 );
+* // returns ~-529.124
+*/
+ 
+// MODULES //
+ 
+var main = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = main;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/bernoulli/main.js.html b/math/base/special/bernoulli/main.js.html new file mode 100644 index 000000000..e6cf75709 --- /dev/null +++ b/math/base/special/bernoulli/main.js.html @@ -0,0 +1,385 @@ + + + + + + Code coverage report for math/base/special/bernoulli/lib/main.js + + + + + + + + + +
+
+

All files / math/base/special/bernoulli/lib main.js

+
+ +
+ 100% + Statements + 100/100 +
+ + +
+ 100% + Branches + 11/11 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 100/100 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +1011x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +852x +852x +102x +102x +852x +250x +250x +852x +370x +370x +130x +852x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2018 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var isNonNegativeInteger = require( '@stdlib/math/base/assert/is-nonnegative-integer' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var isOdd = require( '@stdlib/math/base/assert/is-odd' );
+var NINF = require( '@stdlib/constants/float64/ninf' );
+var PINF = require( '@stdlib/constants/float64/pinf' );
+var BERNOULLI = require( './bernoulli.json' );
+ 
+ 
+// VARIABLES //
+ 
+var MAX_BERNOULLI = 258|0; // asm type annotation
+ 
+ 
+// MAIN //
+ 
+/**
+* Computes the nth Bernoulli number.
+*
+* @param {NonNegativeInteger} n - the Bernoulli number to compute
+* @returns {number} Bernoulli number
+*
+* @example
+* var y = bernoulli( 0 );
+* // returns 1.0
+*
+* @example
+* var y = bernoulli( 1 );
+* // returns 0.0
+*
+* @example
+* var y = bernoulli( 2 );
+* // returns ~0.167
+*
+* @example
+* var y = bernoulli( 3 );
+* // returns 0.0
+*
+* @example
+* var y = bernoulli( 4 );
+* // returns ~-0.033
+*
+* @example
+* var y = bernoulli( 5 );
+* // returns 0.0
+*
+* @example
+* var y = bernoulli( 20 );
+* // returns ~-529.124
+*
+* @example
+* var y = bernoulli( 260 );
+* // returns -Infinity
+*
+* @example
+* var y = bernoulli( 262 );
+* // returns Infinity
+*
+* @example
+* var y = bernoulli( NaN );
+* // returns NaN
+*/
+function bernoulli( n ) {
+	if ( isnan( n ) || !isNonNegativeInteger( n ) ) {
+		return NaN;
+	}
+	if ( isOdd( n ) ) {
+		return 0.0;
+	}
+	if ( n > MAX_BERNOULLI ) {
+		return ( (n/2)&1 ) ? PINF : NINF;
+	}
+	return BERNOULLI[ n/2 ];
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = bernoulli;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/math/base/special/bernoulli/native.js.html b/math/base/special/bernoulli/native.js.html new file mode 100644 index 000000000..b9adba435 --- /dev/null +++ b/math/base/special/bernoulli/native.js.html @@ -0,0 +1,316 @@ + + + + + + Code coverage report for math/base/special/bernoulli/lib/native.js + + + + + + + + + +
+
+

All files / math/base/special/bernoulli/lib native.js

+
+ +
+ 100% + Statements + 77/77 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 77/77 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +781x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +850x +850x +850x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var addon = require( './../src/addon.node' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Computes the nth Bernoulli number.
+*
+* @param {NonNegativeInteger} n - the Bernoulli number to compute
+* @returns {number} Bernoulli number
+*
+* @example
+* var y = bernoulli( 0 );
+* // returns 1.0
+*
+* @example
+* var y = bernoulli( 1 );
+* // returns 0.0
+*
+* @example
+* var y = bernoulli( 2 );
+* // returns ~0.167
+*
+* @example
+* var y = bernoulli( 3 );
+* // returns 0.0
+*
+* @example
+* var y = bernoulli( 4 );
+* // returns ~-0.033
+*
+* @example
+* var y = bernoulli( 5 );
+* // returns 0.0
+*
+* @example
+* var y = bernoulli( 20 );
+* // returns ~-529.124
+*
+* @example
+* var y = bernoulli( 260 );
+* // returns -Infinity
+*
+* @example
+* var y = bernoulli( 262 );
+* // returns Infinity
+*/
+function bernoulli( n ) {
+	return addon( n );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = bernoulli;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file