MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / sqrt

Function sqrt

std/math/src/main/float.rs:31–31  ·  view source on GitHub ↗
(x: f64)

Source from the content-addressed store, hash-verified

29
30#[plugin_fn]
31fn sqrt(x: f64) -> Result<f64> { if x < 0.0 { return Err(dom()); } Ok(libm::sqrt(x)) }
32
33#[plugin_fn]
34fn cbrt(x: f64) -> f64 { libm::cbrt(x) }

Callers 2

hypotFunction · 0.85
distFunction · 0.85

Calls 1

domFunction · 0.70

Tested by

no test coverage detected