|
Size: 2878
Comment:
|
Size: 2907
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| goto [:interact:interact main page] [[TableOfContents]] |
goto [[interact|interact main page]] <<TableOfContents>> |
| Line 6: | Line 6: |
| {{{ | {{{#!sagecell |
| Line 43: | Line 43: |
| attachment:cobweb.png | {{attachment:cobweb.png}} |
| Line 65: | Line 65: |
| {{{ | {{{#!sagecell |
| Line 85: | Line 85: |
| attachment:logisticorbits.png | {{attachment:logisticorbits.png}} |
Sage Interactions - Dynamical Systems
goto interact main page
Contents
Cobweb diagrams on [0,1]
by Marshall Hampton.
Cythonized Logistic Orbit Map
By Marshall Hampton
%cython
cpdef double logorb(double k,long N,double x0):
cdef double x = x0
cdef long i
for i from 1 <= i <= N:
x = k*x*(1-x)
return x
cpdef logtraj(double k,long N, double x0):
cdef double x = x0
xvals = []
cdef long i
for i from 1 <= i <= N:
x = k*x*(1-x)
xvals.append(x)
return xvals
