Searcharxiv⌕ Search

arXiv · 0704.3182

Python for Education: Computational Methods for Nonlinear Systems

Abstract

We describe a novel, interdisciplinary, computational methods course that uses Python and associated numerical and visualization libraries to enable students to implement simulations for a number of different course modules. Problems in complex networks, biomechanics, pattern formation, and gene regulation are highlighted to illustrate the breadth and flexibility of Python-powered computational environments.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Christopher R. Myers, James. P. Sethna. 2007-04-24. Python for Education: Computational Methods for Nonlinear Systems. https://arxiv.org/abs/0704.3182

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Evidence for an Obstruction to Perturbative Renormalization Group in Stochastic Turbulence

We examine whether the perturbative renormalization group (RG) regime of stochastic turbulence can be continued from small $\varepsilon$ to the physical value $\varepsilon_{\mathrm{phys}}=2$, corresponding to large-scale forcing. Exploiting the simplifications of the large-$d$ limit, we calculate the correction exponent $ω$ to five-loop order and find a simple structure suggesting a closed analytic form. This form implies that the fixed point stable near $\varepsilon=0$ ceases to be simultaneously real and infrared stable before reaching $\varepsilon_{\mathrm{phys}}=2$, pointing to a possible change of infrared regime rather than a controlled perturbative RG extrapolation.

nlin.CD↗

Multistability in the Duffing--Holmes oscillator: basins of antiperiodic, periodic, and chaotic attractors and their relative volumes

The periodically driven Duffing--Holmes oscillator is strongly multistable: for the same forcing amplitude and frequency, periodic, chaotic, and antiperiodic attractors coexist, each with its own basin of attraction. Antiperiodic orbits are periodic orbits invariant under a shift of half a driving period combined with a sign reversal of the coordinates, a symmetry of the equations of motion. Guided by a continuation map of the parameter plane, which locates the regimes but is blind to their coexistence, we explore the space of initial conditions along two one-parameter cuts, at fixed forcing frequency and at fixed forcing amplitude. Stochastic sampling of the full space yields an unbiased estimate of the relative volume of each basin as a function of the control parameter, on the same parameter grids on which single-trajectory bifurcation diagrams are computed by continuation. Basin maps on two-dimensional sections, complemented by maps of the order of the attractor reached from each initial condition, resolve the geometry of the coexisting basins where the competition between attractors is strongest. The relative volumes reveal windows of global antiperiodic dominance, in which the antiperiodic orbit attracts essentially every initial condition, separated by narrow intervals in which two or three qualitatively different attractors share the space in comparable proportions, as well as extended ranges of persistent coexistence; at large forcing amplitude, a single antiperiodic orbit of order one captures the whole space. Compared with the bifurcation diagrams, the abrupt changes of basin volume are the ensemble-level counterpart of the multistability-induced discontinuities of the sweeps, and the gradual shrinking of the antiperiodic basin explains why the branch followed by a sweep depends on the initial state and on the drive phase.

nlin.CD↗