Get the natural logarithm of the beta value of Non-Negative numeric vectors in R Language – lbeta() Function
Last Updated :
08 Jun, 2020
lbeta()
function in R Language is used to return the natural logarithm of the beta function. The beta function is also known as Euler’s integral of the first kind.
Syntax: lbeta(a, b)
Parameters:
a, b: non-negative numeric vectors
Example 1:
lbeta( 1 , 2 )
lbeta( 2 , 2 )
lbeta( 3 , 5 )
|
Output:
[1] -0.6931472
[1] -1.791759
[1] -4.65396
Example 2:
x < - c( 1 , 2 , 3 )
y < - c( 2 , 4 , 6 )
lbeta(x, y)
|
Output:
[1] -0.6931472 -2.9957323 -5.1239640
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...