Differences between revisions 6 and 7
Revision 6 as of 2012-04-18 17:58:33
Size: 2897
Editor: bvarberg
Comment:
Revision 7 as of 2012-04-18 17:59:12
Size: 2907
Editor: bvarberg
Comment:
Deletions are marked like this. Additions are marked like this.
Line 65: Line 65:
{{{ {{{#!sagecell

Sage Interactions - Dynamical Systems

goto interact main page

Cobweb diagrams on [0,1]

by Marshall Hampton.

cobweb.png

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

logisticorbits.png

interact/dynsys (last edited 2017-03-26 08:10:06 by mforets)