Skip to content

Commit 5ab7572

Browse files
committed
chore: update implementation
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: missing_dependencies - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 503db28 commit 5ab7572

File tree

1 file changed

+28
-28
lines changed
  • lib/node_modules/@stdlib/math/base/special/bessely1/src

1 file changed

+28
-28
lines changed

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

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -249,36 +249,36 @@ double stdlib_base_bessely1( double x ) {
249249
double y2;
250250
double xc;
251251

252-
if (x < 0.0) {
253-
return NAN;
254-
}
255-
if (x == 0.0) {
256-
return -INFINITY;
257-
}
258-
if (x == INFINITY) {
259-
return 0.0;
260-
}
252+
if (x < 0.0) {
253+
return NAN;
254+
}
255+
if (x == 0.0) {
256+
return -INFINITY;
257+
}
258+
if (x == INFINITY) {
259+
return 0.0;
260+
}
261261
xc = x;
262-
if (xc <= 4.0) {
263-
y = xc * xc;
264-
z = ( stdlib_base_ln( xc / x1 ) * stdlib_base_besselj1( xc ) ) * TWO_DIV_PI;
265-
r = rational_p1q1( y );
266-
f = ( ( xc+x1 ) * ( ( xc - ( x11 / 256.0) ) - x12 ) ) / xc;
267-
return z + ( f * r );
268-
}
269-
if ( xc <= 8.0 ) {
270-
y = xc * xc;
271-
z = ( stdlib_base_ln( xc / x2 ) * stdlib_base_besselj1( xc ) ) * TWO_DIV_PI;
272-
r = rational_p2q2( y );
273-
f = ( ( xc + x2 ) * ( ( xc - ( x21 / 256.0 ) ) - x22 ) ) / xc;
274-
return z + ( f * r );
275-
}
262+
if (xc <= 4.0) {
263+
y = xc * xc;
264+
z = ( stdlib_base_ln( xc / x1 ) * stdlib_base_besselj1( xc ) ) * TWO_DIV_PI;
265+
r = rational_p1q1( y );
266+
f = ( ( xc+x1 ) * ( ( xc - ( x11 / 256.0) ) - x12 ) ) / xc;
267+
return z + ( f * r );
268+
}
269+
if ( xc <= 8.0 ) {
270+
y = xc * xc;
271+
z = ( stdlib_base_ln( xc / x2 ) * stdlib_base_besselj1( xc ) ) * TWO_DIV_PI;
272+
r = rational_p2q2( y );
273+
f = ( ( xc + x2 ) * ( ( xc - ( x21 / 256.0 ) ) - x22 ) ) / xc;
274+
return z + ( f * r );
275+
}
276276

277-
y = 8.0 / xc;
278-
y2 = y * y;
279-
rc = rational_pcqc( y2 );
280-
rs = rational_psqs( y2 );
281-
f = ONE_DIV_SQRT_PI / stdlib_base_sqrt( xc );
277+
y = 8.0 / xc;
278+
y2 = y * y;
279+
rc = rational_pcqc( y2 );
280+
rs = rational_psqs( y2 );
281+
f = ONE_DIV_SQRT_PI / stdlib_base_sqrt( xc );
282282

283283
/*
284284
* This code is really just:

0 commit comments

Comments
 (0)