Skip to content

Commit 21bbdfd

Browse files
committed
chore: fix f32 emulation
--- 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: passed - 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: na - 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 e3eb124 commit 21bbdfd

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/spencef/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/math/base/special/spencef/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ function spencef( x ) {
114114
w = f32( -x );
115115
flg |= 1;
116116
} else {
117-
w = x - ONE;
117+
w = f32( x - ONE );
118118
}
119119
y = f32( -w * f32( polyvalA( w ) / polyvalB( w ) ) );
120120
if ( flg & 1 ) {
121121
y = f32( PI2O6 - f32( lnf( x )*lnf( ONE-x ) ) - y );
122122
}
123123
if ( flg & 2 ) {
124124
z = lnf( x );
125-
y = -f32( f32( HALF*z*z ) + y );
125+
y = f32( -f32( f32( HALF * f32( z*z ) ) + y ) );
126126
}
127127
return y;
128128
}

0 commit comments

Comments
 (0)