Skip to main content

sqrt

Function sqrt 

Source
pub const fn sqrt(x: f64) -> f64
Expand description

Computes sqrt(x) using the table-driven Goldschmidt iteration from musl libc. Correctly rounded to nearest-even for all f64 inputs. const, no std, no alloc friendly.