title: How to calculate the square root without using library and built-in methods in Javascript?
body: <p>Please help me to write a function to compute the square root of positive real numbers using the formula:</p>
  
  <pre><code>x i+1 = (1/2) * (xi + (A / x1)),
  </code></pre>
  
  <p>where 'A' - input real number.</p>
  
  <p>On the zero iteration next statements have been taken x0 = A
  The error should be at least  10-6</p>
  
  <p>Output</p>
  
  <pre><code>sqrt (2) = 1.414
  sqrt (9) = 3
  sqrt (25) = 5
  </code></pre>