Processing Math: Done
jsMath
Differences between revisions 4 and 7 (spanning 3 versions)
Revision 4 as of 2008-10-31 13:01:49
Size: 2878
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 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

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)