[−][src]Function mathru::special::beta::beta
pub fn beta<T>(x: T, y: T) -> T where
T: Real + Beta,
Beta function
\Beta(x,y) = \int_0^1 t^{x-1}(1-t)^{y-1}\,dt
Fore more information: Wikipedia Beta function
Arguments
x
> 0.0y
> 0.0
Panics
Panics if the parameter conditions are not fulfilled.
Example
use mathru::special::beta; let x: f64 = 0.3_f64; let y: f64 = 0.6_f64; let beta: f64 = beta::beta(x, y);