Skip to content

Instantly share code, notes, and snippets.

@kevinpang
Created February 26, 2012 06:59
Show Gist options
  • Save kevinpang/1914606 to your computer and use it in GitHub Desktop.
Save kevinpang/1914606 to your computer and use it in GitHub Desktop.
Bad commenting
r = n / 2; // Set r to n divided by 2
// Loop while r - (n/r) is greater than t
while (abs( r - (n/r) ) > t) {
r = 0.5 * ( r + (n/r) ); // Set r to half of r + (n/r)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment