Python Scientific lecture notes - Scipy Lecture Notes

Sep 21, 2015 - I One document to learn numerics, science, and data with Python. 1 .... pany: the code should be as readable as a book. ..... a free software released under an open-source license: Python can be used ...... Can you plot the pdf on top (it should match)? ...... To run it, you also need to download the ica module.
16MB Sizes 5 Downloads 777 Views
Contents

Python Scientific lecture notes Release 2013.2 beta (euroscipy 2013)

EuroScipy tutorial team Editors: Valentin Haenel, Emmanuelle Gouillart, Gaël Varoquaux

I

One document to learn numerics, science, and data with Python

1

Getting started with Python for science 1.1 Scientific computing with tools and workflow . . . 1.2 The Python language . . . . . . . . . . . . . . . . 1.3 NumPy: creating and manipulating numerical data 1.4 Matplotlib: plotting . . . . . . . . . . . . . . . . 1.5 Scipy : high-level scientific computing . . . . . . 1.6 Getting help and finding documentation . . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

3 . 3 . 9 . 42 . 81 . 103 . 137

2

Advanced topics 2.1 Advanced Python Constructs . . . . . . . . . . . . . . . . . 2.2 Advanced Numpy . . . . . . . . . . . . . . . . . . . . . . 2.3 Debugging code . . . . . . . . . . . . . . . . . . . . . . . 2.4 Optimizing code . . . . . . . . . . . . . . . . . . . . . . . 2.5 Sparse Matrices in SciPy . . . . . . . . . . . . . . . . . . . 2.6 Image manipulation and processing using Numpy and Scipy 2.7 Mathematical optimization: finding minima of functions . . 2.8 Interfacing with C . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

139 139 155 187 197 203 222 239 252

3

Packages and applications 3.1 Statistics in Python . . . . . . . . . . . . . 3.2 Sympy : Symbolic Mathematics in Python 3.3 Scikit-image: image processing . . . . . . 3.4 Traits: building interactive dialogs . . . . . 3.5 3D plotting with Mayavi . . . . . . . . . . 3.6 scikit-learn: machine learning in Python . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

271 271 318 324 338 357 369

http://scipy-lectures.github.com

Index

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

1

379

September 26, 2015 (2013.2-beta-328-g3cd80a5)

i

Python Scientific lecture notes, Release 2013.2 beta (euroscipy 2013)

Part I

One document to learn numerics, science, and data with Python

1

2

Python Scientific lecture notes, Release 2013.2 beta (euroscipy 2013) CHAPTER 1