Namespaces
Variants
Actions

std::beta, std::betaf, std::betal

From cppreference.com
 
 
 
 
Defined in header <cmath>
(1)
float       beta ( float x, float y );

double      beta ( double x, double y );

long double beta ( long double x, long double y );
(since C++17)
(until C++23)
/* floating-point-type */ beta( /* floating-point-type */ x,
                                /* floating-point-type */ y );
(since C++23)
float       betaf( float x, float y );
(2) (since C++17)
long double betal( long double x, long double y );
(3) (since C++17)
Defined in header <cmath>
template< class Arithmetic1, class Arithmetic2 >
/* common-floating-point-type */ beta( Arithmetic1 x, Arithmetic2 y );
(A) (since C++17)
1-3) Computes the Beta function of x and y. The library provides overloads of std::beta for all cv-unqualified floating-point types as the type of the parameters x and y.(since C++23)
A) Additional overloads are provided for all other combinations of arithmetic types.

Contents

[edit] Parameters

x, y - floating-point or integer values

[edit] Return value

If no errors occur, value of the beta function of x and y, that is 1
0
tx-1
(1-t)(y-1)
dt
, or, equivalently,
Γ(x)Γ(y)
Γ(x+y)
is returned.

[