Search code examples
c++sqrt

Implement double sqrt(double x) in C++


Implement double sqrt(double x) in C++ without using std library.

This is a facebook interview question I saw here. http://www.glassdoor.com/Interview/Implement-double-sqrt-double-x-in-C-QTN_87210.htm Any other good idea about this?...

!!!Edited.!!!(without using std library.)


Solution

  • Look here. This CodeProject article compares 14 different methods for computing the square root.