cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
sqrt 4
sqrt 4
Nov 23, 2013 at 6:44pm
Nov 23, 2013 at 6:44pm UTC
eran
(10)
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:44pm UTC
Nov 23, 2013 at 6:50pm
Nov 23, 2013 at 6:50pm UTC
dukhi x
(14)
sqrt(sqrt(num));
include math.h to use sqrt function.
Last edited on
Nov 23, 2013 at 6:51pm
Nov 23, 2013 at 6:51pm UTC
Nov 23, 2013 at 6:50pm
Nov 23, 2013 at 6:50pm UTC
Chervil
(7320)
You need x
¼
or x
0.25
Use the
pow()
function.
http://www.cplusplus.com/reference/cmath/pow/
Nov 23, 2013 at 7:10pm
Nov 23, 2013 at 7:10pm UTC
eran
(10)
tnx for your help i succed
Topic archived. No new replies allowed.