Skip to content

Commit f3d4e01

Browse files
committed
edit
1 parent c52b466 commit f3d4e01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/uniform/mgf/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ double stdlib_base_dists_uniform_mgf( const double t, const double a, const doub
4646
return 1.0;
4747
}
4848
// Case: t not equal to zero
49-
return ( stdlib_base_exp( t * b ) - stdlib_base_exp( t * a ) ) / ( t * ( b - a ) );
49+
return stdlib_base_exp( v ) * ( stdlib_base_sinh ( u ) / u );
5050
}

lib/node_modules/@stdlib/stats/base/dists/uniform/mgf/test/test.native.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ tape( 'if provided `a >= b`, the function returns `NaN`', opts, function test( t
8181
t.end();
8282
});
8383

84-
tape( 'if provided valid parameters, the function returns `1` for `t = 0`', function test( t ) {
84+
tape( 'if provided valid parameters, the function returns `1` for `t = 0`', opts, function test( t ) {
8585
var y;
8686

8787
y = mgf( 0.0, 2.0, 4.0 );

0 commit comments

Comments
 (0)