Qbasicnews.com

Full Version: Finding roots
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
To get the nth root:
number ^ (1 / n)
the n-th root of a number x is simply x^(1/n)
Quote:the n-th root of a number x is simply x^(1/n)

Bahaha! I beat you! Tongue
ok, thanks.
What do guys think of ninkazu's avatar? :*)
Quote:What do guys think of ninkazu's avatar? :*)

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

fag

Hey... Sad
hahaha