Skip to content

Instantly share code, notes, and snippets.

@jan-matejka
Created March 30, 2018 11:40
Show Gist options
  • Save jan-matejka/975473579025dcb2b05755a590e4e9ce to your computer and use it in GitHub Desktop.
Save jan-matejka/975473579025dcb2b05755a590e4e9ce to your computer and use it in GitHub Desktop.
k = float(input("choose a positive parameter, k:"))
n = int(input("choose the lenght of the sequence:"))
x = float (input("choose the first term of the sequence, x:"))
for i in range(n):
if i == 0:
a = x
else:
a = k * a * (1-a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment