Searched refs:DENOM (Results 1 – 3 of 3) sorted by relevance
176 const DENOM: u32 = 10; in test_average() constant178 let d2 = Bernoulli::from_ratio(NUM, DENOM).unwrap(); in test_average()196 assert!((avg2 - (NUM as f64) / (DENOM as f64)).abs() < 5e-3); in test_average()
93 #define DENOM r3:2 macro98 PROD = extractu(DENOM,#SF_MANTBITS,#DF_MANTBITS-SF_MANTBITS)181 TMPPAIR = sub(REM,DENOM)182 P_TMP = cmp.gtu(DENOM,REM)204 #undef DENOM
571 const DENOM: u32 = 10; in test_gen_ratio_average() constant577 if rng.gen_ratio(NUM, DENOM) { in test_gen_ratio_average()582 let expected = (NUM * N) / DENOM; // exact integer in test_gen_ratio_average()