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

Function quartic_root

Source Code/19-01.rs:4–4  ·  view source on GitHub ↗
(x: f64)

Source from the content-addressed store, hash-verified

2*/
3fn main() {
4 fn quartic_root(x: f64) -> f64 { x.sqrt().sqrt() }
5 let qr = quartic_root(100f64);
6 print!("{} {}", qr * qr * qr * qr, qr);
7}

Callers 1

mainFunction · 0.70

Calls 1

sqrtMethod · 0.45

Tested by

no test coverage detected