Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding roots
#1
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
Reply
#2
To get the nth root:
number ^ (1 / n)
am an asshole. Get used to it.
Reply
#3
the n-th root of a number x is simply x^(1/n)
Antoni
Reply
#4
Quote:the n-th root of a number x is simply x^(1/n)

Bahaha! I beat you! Tongue
am an asshole. Get used to it.
Reply
#5
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
Reply
#6
What do guys think of ninkazu's avatar? :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#7
Quote:What do guys think of ninkazu's avatar? :*)

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

fag

Hey... Sad
am an asshole. Get used to it.
Reply
#9
hahaha
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)