title: c# Math.Sqrt Implementation
body: <p>I've been using System.Math quite a lot lately and the other day I was wondering, how Microsoft would have implemented the Sqrt method in the library. So I popped open my best mate Reflector and tried to Disassemble the method in the library, but it showed:</p>
  <pre><code>[MethodImpl(MethodImplOptions.InternalCall),ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
  public static extern double Sqrt(double d);
  </code></pre>
  <p>That day for the first time ever, I realized how dependent my kids are on the framework, to eat.</p>
  <p>Jokes apart, but i was wondering what sort of algorithm MS would have used to implement this method or in other words how would you write your own implementation of Math.Sqrt in C# if you had no library support.</p>