Function hmath::pi_iter

source ·
pub fn pi_iter(k: usize) -> Ratio
Expand description

It returns an approximate value of PI. It gets more and more accurate as k gets bigger. For now, k should be less than 255.