Implement the algorithm to compute the principal [[wp:Nth root|<big>''n''<sup>th</sup></big> root]] <big><big><big><math>\sqrt[n]A</math></big></big></big> of a positive real number <big>''A''</big>, as explained at the [[wp:Nth root algorithm|Wikipedia page]].