Skip to content

Commit cc4a2ee

Browse files
committed
Remove unnecessary variable
The `prefix` variable was only included in the original reference implementation for historical reasons. Its inclusion is no longer necessary.
1 parent e8c3042 commit cc4a2ee

File tree

1 file changed

+0
-5
lines changed
  • lib/node_modules/@stdlib/math/base/special/beta/lib

1 file changed

+0
-5
lines changed

lib/node_modules/@stdlib/math/base/special/beta/lib/beta.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ var G = 10.90051099999999983936049829935654997826;
6565
* // returns NaN
6666
*/
6767
function beta( a, b ) {
68-
var prefix;
6968
var ambh;
7069
var agh;
7170
var bgh;
@@ -74,7 +73,6 @@ function beta( a, b ) {
7473
var tmp;
7574
var c;
7675

77-
prefix = 1;
7876
if ( isnan( a ) || isnan( b ) ) {
7977
return NaN;
8078
}
@@ -128,9 +126,6 @@ function beta( a, b ) {
128126
res *= pow( (agh*bgh)/(cgh*cgh), b );
129127
}
130128
res *= sqrt( E/bgh);
131-
132-
// If `a` and `b` were originally less than 1 we need to scale the result:
133-
res *= prefix;
134129
return res;
135130
} // end FUNCTION beta()
136131

0 commit comments

Comments
 (0)