[−][src]Function surreal::is_divisible
pub fn is_divisible(x: &Surreal, y: &Surreal) -> bool
Tests if a division will produce a result with finite sets. Useful in making sure a division of surreal numbers won't panic.
Examples
let zero = surreal::Surreal::new(vec![], vec![]); let one = surreal::Surreal::new(vec![], vec![&zero]); if surreal::is_divisible(&zero, &one) { println!("{}", &zero / &one); }