mathematic

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2007
Posts: 6
Reputation: Beginner+597 is an unknown quantity at this point 
Solved Threads: 0
Beginner+597 Beginner+597 is offline Offline
Newbie Poster

mathematic

 
0
  #1
Nov 5th, 2008
hi everyone,

I'm trying to write a program that calculates the the fourth sqrt() of an int ..., can someone help me
thnxx
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: mathematic

 
0
  #2
Nov 5th, 2008
Originally Posted by Beginner+597 View Post
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...
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 6
Reputation: Beginner+597 is an unknown quantity at this point 
Solved Threads: 0
Beginner+597 Beginner+597 is offline Offline
Newbie Poster

Re: mathematic

 
0
  #3
Nov 5th, 2008
Originally Posted by ArkM View Post
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 .
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: mathematic

 
0
  #4
Nov 6th, 2008
Is your "fourth sqrt()" equal to 1/4 of square root or it's a quadratic root?
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 6
Reputation: Beginner+597 is an unknown quantity at this point 
Solved Threads: 0
Beginner+597 Beginner+597 is offline Offline
Newbie Poster

Re: mathematic

 
0
  #5
Nov 6th, 2008
Originally Posted by ArkM View Post
Is your "fourth sqrt()" equal to 1/4 of square root or it's a quadratic root?

it equals to to 1/4 sqrt()...
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,857
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: mathematic

 
0
  #6
Nov 6th, 2008
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.
Last edited by ithelp; Nov 6th, 2008 at 4:45 am.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 81
Reputation: minas1 is an unknown quantity at this point 
Solved Threads: 8
minas1's Avatar
minas1 minas1 is offline Offline
Junior Poster in Training

Re: mathematic

 
0
  #7
Nov 8th, 2008
I think it's:

pow(number, power)

pow(10, 0.4);

I'm not sure so check it out. It's in <math.h>
Last edited by minas1; Nov 8th, 2008 at 2:48 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: mathematic

 
0
  #8
Nov 8th, 2008
I can't understand your troubles. Evidently it's 0.25*sqrt(x) or sqrt(sqrt(x)) . Or what else? What's a problem?
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 88
Reputation: DavidB is an unknown quantity at this point 
Solved Threads: 2
DavidB DavidB is offline Offline
Junior Poster in Training

Re: mathematic

 
0
  #9
Nov 8th, 2008
Originally Posted by ArkM View Post
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).
Last edited by DavidB; Nov 8th, 2008 at 6:22 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC