Qbasicnews.com
Finding roots - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: Finding roots (/thread-692.html)



Finding roots - hedgehog - 04-24-2003

I need an algorithm that will solve for the cube root or the nth root of a number. I can do it, but it requires quite a bit of looping and incrementing. This is very time consuming. Is there an easier way?

Hedgehog


Finding roots - Ninkazu - 04-24-2003

To get the nth root:
number ^ (1 / n)


Finding roots - Antoni Gual - 04-24-2003

the n-th root of a number x is simply x^(1/n)


Finding roots - Ninkazu - 04-24-2003

Quote:the n-th root of a number x is simply x^(1/n)

Bahaha! I beat you! Tongue


Finding roots - hedgehog - 04-24-2003

ok, thanks.


Finding roots - relsoft - 04-25-2003

What do guys think of ninkazu's avatar? :*)


Finding roots - wizardlife - 04-25-2003

Quote:What do guys think of ninkazu's avatar? :*)

fag


Finding roots - Ninkazu - 04-25-2003

Quote:
relsoft Wrote:What do guys think of ninkazu's avatar? :*)

fag

Hey... Sad


Finding roots - Kofman - 04-28-2003

hahaha