Skip to content

Commit 6b5e320

Browse files
authored
Update main.c
Signed-off-by: Gunj Joshi <[email protected]>
1 parent 338213e commit 6b5e320

File tree

1 file changed

+1
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/bernoulli/src

1 file changed

+1
-3
lines changed

lib/node_modules/@stdlib/math/base/special/bernoulli/src/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include "stdlib/math/base/assert/is_nonnegative_integer.h"
20-
#include "stdlib/math/base/assert/is_nan.h"
2119
#include "stdlib/math/base/assert/is_odd.h"
2220
#include "stdlib/constants/float64/ninf.h"
2321
#include "stdlib/constants/float64/pinf.h"
@@ -170,7 +168,7 @@ int32_t MAX_BERNOULLI = 258;
170168
* // returns 1
171169
*/
172170
double stdlib_base_bernoulli( const int32_t n ) {
173-
if ( stdlib_base_is_nan( n ) || !stdlib_base_is_nonnegative_integer( n ) ) {
171+
if ( n < 0 ) {
174172
return 0.0 / 0.0; // NaN
175173
}
176174
if ( n == 1 ) {

0 commit comments

Comments
 (0)