MCPcopy Create free account
hub / github.com/douchuan/algorithm / sqrt3

Function sqrt3

src/math/mysqrt.rs:43–46  ·  view source on GitHub ↗

exp(log(x) * 0.5)

(x: f64)

Source from the content-addressed store, hash-verified

41
42// exp(log(x) * 0.5)
43pub fn sqrt3(x: f64) -> f64 {
44 assert!(x >= 0.0);
45 (x.ln() * 0.5f64).exp()
46}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected