[][src]Function mathru::special::beta::beta_inc

pub fn beta_inc<T>(x: T, a: T, b: T) -> T where
    T: Real + Beta

Incomplete beta function

\Beta(x;\,a,b) = \int_0^x t^{a-1}\,(1-t)^{b-1}\,dt

Fore more information: Wikipedia Beta function

Arguments

  • x
  • a > 0.0
  • b > 0.0

Panics

Panics if the parameter conditions are not fulfilled.

Example

use mathru::special::beta;

let x: f64 = 0.3_f64;
let a: f64 = 0.6_f64;
let b: f64 = 0.7_f64;

let beta: f64 = beta::beta_inc(x, a, b);