How to manually calculate the nth root of a number in C#
I am trying to write an algorithm that will calculate the Nth root of a number that is provided to the algorithm (practically) as a string, in C#. What I have right now calculates the square root, but not other roots, and I want to modify the part of the algorithm that is square root specific in order to generalize it to Nth roots. I have been using two WikiHow articles (URLs in code comments, below) on calculating square and Nth roots manually, and I believe that the only part of what I have that is specific to the square root approach is isolated in my local function, (long, long) GetDigit(
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.