hi everyone,

I'm trying to write a program that calculates the the fourth sqrt() of an int ..., can someone help me
thnxx

hi everyone,

I'm trying to write a program that calculates the the fourth sqrt() of an int ..., can someone help me
thnxx

And where is the product of your efforts?
Remember classics: I'm trying to write a program to hop on the Moon...

And where is the product of your efforts?
Remember classics: I'm trying to write a program to hop on the Moon...

well, i know that i can use the library function double sqrt(double x) to get the sqrt of x, but i don't know how to get the fourth sqrt() of x :'(.

Is your "fourth sqrt()" equal to 1/4 of square root or it's a quadratic root?

Is your "fourth sqrt()" equal to 1/4 of square root or it's a quadratic root?

it equals to to 1/4 sqrt()...

I do not think so, it could be sqrt(sqrt(x)) , or else if it 1/4sqrt(x) , you are supposed to use some iteration formula to calculate an approximate square root of x and then divide it by 4.

I think it's:

pow(number, power)

pow(10, 0.4);

I'm not sure so check it out. It's in <math.h>

I can't understand your troubles. Evidently it's 0.25*sqrt(x) or sqrt(sqrt(x)) . Or what else? What's a problem?

I can't understand your troubles. Evidently it's 0.25*sqrt(x) or sqrt(sqrt(x)) . Or what else? What's a problem?

I agree: the fourth root of a number, x, is sqrt(sqrt(x)), or pow(x, 0.25).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.