sqrt 4

need help in task .
Write a function that accepts a real value (non-negative) and returns the fourth root of the number.
example: if z^4=x ,z is fourth root of x

double root4(double f)
i dont know how to do this
Last edited on
sqrt(sqrt(num));
include math.h to use sqrt function.
Last edited on
You need xΒΌ or x0.25
Use the pow() function.
http://www.cplusplus.com/reference/cmath/pow/
tnx for your help i succed
Topic archived. No new replies allowed.