Skip to main content

sqrt

Function sqrt 

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

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