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

Function quartic_root

Source Code/19-04.cpp:6–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <cmath>
5template <typename Number>
6Number quartic_root(Number x) {
7 return sqrt(sqrt(x));
8}
9int main() {
10 std::cout << quartic_root((float)100)
11 << " " << quartic_root((double)100);

Callers 1

mainFunction · 0.70

Calls 1

sqrtFunction · 0.70

Tested by

no test coverage detected