Numpy is the de facto standard for efficient matrix representations and (BLAS level 1-3) computations. Scipy implements more high-level algorithms for scientific computing (Lapack, statistics,...).
data_plot.py: reads a CSV file containing data, performs linear regression, and plots the data and the line representing the regression; numpy is used to represent the data, scipy to perform the linear regression, matplotlib for plotting the resultdata_writer.py: produces data for thedata_plot.pyscript, linear with noise addeddata.csv: example data set fordata_plot.pydiffusion.ipynb: solving the PDE describing thermal diffusion in 2D.fft.py: creates a signal consisting of a sum of cosine functions with specified amplitudes and frequencies, adding noise; plots the resulting function, uses FFT to determine the frequency spectrum, and plot the latterfft_experiments.ipynb: notebook with some experiments on signal analysis using FFT.game_of_life.ipynb: jupyter notebook implementing Game of Life.logistic_map.ipynb: analysis and visualization of the logistic map.numeexpr.ipynb: Jupyter notebook illustrating some use cases of the numexpr module.numpy.ipynb: Jupyter notebook illustrating some numpy aspects like array slicing, adding dimension to arrays, and so on.indexing_arrays.ipynb: indexing using...,np.newaxisstructured_arrays.ipynb: Jupyter notebook illustration creating of and working with structured numpy arrays.optimization.py: illustration of how to use thescipy.optimizefor unconstrained multivariate optimizationtarget_function_plot.py: script that creates a surface plot of the target function inoptimization.pypendulum_ode.py: solves the ODE of a damped, driven pendulum that is optionally anharmonic. Optionally plots results.dynamic_programming.ipynb: example of string alignment using dynamic programming.vector_write.py: script to create a file containing a specified number of floating point values, either in text or binary format to test I/O performance characteristics.vector_sum.py: reads files generated byvector_write.pyand computes the sum of the values; intended for I/O performance tests.genetic_drift.ipynb: Jupyter notebook illustrating how to use numpy to model systems of arbitrary dimensions.exponentiation.ipynb: Jupyter notebook to illustrate that the algorithm can have a significant impact on performance.io_performance.ipynb: Jupyter notebook to illustrate the performance of different I/O methods (text, binary, HDF5).broadcast.ipynb: Jupyter notebook illustrating the use of broadcasting in numpy.
For chaotic regime, choose the following parameters:
l = 9.81q = 0.5F_d = 1.2omega_d = 0.66667(2/3)theta0 = 0.2anharmonic
To easily obtain as many points as possible for the Poicare section, choose
delta_t ~ 3pi, e.g., delta_t = 0.009424778.