Skip to content

Instantly share code, notes, and snippets.

@kgriffs
Created January 29, 2014 19:56
Show Gist options
  • Save kgriffs/8695688 to your computer and use it in GitHub Desktop.
Save kgriffs/8695688 to your computer and use it in GitHub Desktop.
Double a value per iteration
N = 5
V = 0.001
for i in range(N):
print V * (2 ** i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment