[−][src]Function dahl_bellnumber::bell
pub fn bell(n: usize) -> BigUint
Compute the Bell number.
Examples
let answer = dahl_bellnumber::bell(5); use std::convert::TryFrom; use num_traits::cast::ToPrimitive; assert_eq!(answer, num_bigint::BigUint::try_from(52_u32).unwrap()); assert_eq!(answer.to_f64().unwrap(), 52.0);