cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
algorithm for radicals?
algorithm for radicals?
May 3, 2011 at 2:53am UTC
ascii
(1062)
does anyone know of an effective way to compute square roots that wont just be brute forcing it by adding a puny decimal like .000000000001 and testing if when squared gives the right number? thank you :)
May 3, 2011 at 3:18am UTC
Branflakes91093
(207)
like the sqrt function?
http://cplusplus.com/reference/clibrary/cmath/sqrt/
EDIT: And here are some faster implementations (that sacrifice some accuracy for more speed)
http://ilab.usc.edu/wiki/index.php/Fast_Square_Root
Last edited on
May 3, 2011 at 3:20am UTC
May 3, 2011 at 8:31pm UTC
ascii
(1062)
haha thank you :)
Topic archived. No new replies allowed.