MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / quartic_root

Function quartic_root

Source Code/19-13.rs:14–17  ·  view source on GitHub ↗
(x: Number)

Source from the content-addressed store, hash-verified

12 fn sqrt(self) -> Self { self.sqrt() }
13 }
14 fn quartic_root<Number>(x: Number) -> Number
15 where Number: HasSquareRoot {
16 x.sqrt().sqrt()
17 }
18 sqrt();
19 print!("{} {}",
20 quartic_root(100f64),

Callers

nothing calls this directly

Calls 1

sqrtMethod · 0.45

Tested by

no test coverage detected