Posts: 11
Threads: 3
Joined: Feb 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
n a world as crazy as this one, it ought to be easy to find something that happens solely by chance. It isn't.
Kevin McKeen
The Orderly Pursuit of Pure Disorder.
Discover, January, 1981
Posts: 1,166
Threads: 62
Joined: Apr 2003
To get the nth root:
number ^ (1 / n)
am an asshole. Get used to it.
Posts: 1,407
Threads: 117
Joined: Dec 2002
the n-th root of a number x is simply x^(1/n)
Antoni
Posts: 1,166
Threads: 62
Joined: Apr 2003
Quote:the n-th root of a number x is simply x^(1/n)
Bahaha! I beat you!
am an asshole. Get used to it.
Posts: 11
Threads: 3
Joined: Feb 2003
ok, thanks.
n a world as crazy as this one, it ought to be easy to find something that happens solely by chance. It isn't.
Kevin McKeen
The Orderly Pursuit of Pure Disorder.
Discover, January, 1981
Posts: 3,288
Threads: 167
Joined: Nov 2001
What do guys think of ninkazu's avatar? :*)
Posts: 720
Threads: 46
Joined: Oct 2001
Quote:What do guys think of ninkazu's avatar? :*)
fag
Posts: 1,166
Threads: 62
Joined: Apr 2003
Quote:relsoft Wrote:What do guys think of ninkazu's avatar? :*)
fag
Hey...
am an asshole. Get used to it.
Posts: 131
Threads: 10
Joined: Oct 2002
hahaha
·····································LINEAR INC·····································
Ã-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance