Skip to content

Instantly share code, notes, and snippets.

@antonia-had
Last active February 25, 2019 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonia-had/67051ead483a83c90f06dd08056997b3 to your computer and use it in GitHub Desktop.
Save antonia-had/67051ead483a83c90f06dd08056997b3 to your computer and use it in GitHub Desktop.
alpha function
def alpha(i, base=0.2):
l = lambda x: x+base-x*base
ar = [l(0)]
for j in range(i):
ar.append(l(ar[-1]))
return ar[-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment