We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3eb124 commit 21bbdfdCopy full SHA for 21bbdfd
lib/node_modules/@stdlib/math/base/special/spencef/lib/main.js
@@ -114,15 +114,15 @@ function spencef( x ) {
114
w = f32( -x );
115
flg |= 1;
116
} else {
117
- w = x - ONE;
+ w = f32( x - ONE );
118
}
119
y = f32( -w * f32( polyvalA( w ) / polyvalB( w ) ) );
120
if ( flg & 1 ) {
121
y = f32( PI2O6 - f32( lnf( x )*lnf( ONE-x ) ) - y );
122
123
if ( flg & 2 ) {
124
z = lnf( x );
125
- y = -f32( f32( HALF*z*z ) + y );
+ y = f32( -f32( f32( HALF * f32( z*z ) ) + y ) );
126
127
return y;
128
0 commit comments