Function square_root
Source pub fn square_root(number: f64) -> Result<f64>
Expand description
Computes the square root of a number synchronously.
§Arguments
number: The input number (must be non-negative).
§Returns
Ok(f64) if the computation is successful.
Err(anyhow::Error) if the input number is negative.