sqrt 4

Nov 23, 2013 at 6:44pm
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 Nov 23, 2013 at 6:44pm
Nov 23, 2013 at 6:50pm
sqrt(sqrt(num));
include math.h to use sqrt function.
Last edited on Nov 23, 2013 at 6:51pm
Nov 23, 2013 at 6:50pm
You need x¼ or x0.25
Use the pow() function.
http://www.cplusplus.com/reference/cmath/pow/
Nov 23, 2013 at 7:10pm
tnx for your help i succed
Topic archived. No new replies allowed.