25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- from matplotlib import pyplot
- import numpy
- import sys
-
- k = float(sys.argv[1])
-
-
- def f(x):
- return k * x * (1 - x)
-
-
- x0 = 0.5
-
- n = 200
-
-
- def liste(n):
- resultat = [x0]
- for i in range(n):
- resultat.append(f(resultat[-1]))
- return resultat
-
-
- abscisses = list(numpy.linspace(0, 10, n + 1))
- ordonnées = liste(n)
-
- pyplot.plot(abscisses, ordonnées)
- pyplot.show()
|