An introduction to Numpy and Scipy
Table of contents
Table of contents ............................................................................................................................ 1
Overview ......................................................................................................................................... 2
Installation ...................................................................................................................................... 2
Other resources .............................................................................................................................. 2
Importing the NumPy module ........................................................................................................ 2
Arrays .............................................................................................................................................. 3
Other ways to create arrays ........................................................................................................... 7
Array mathematics.......................................................................................................................... 8
Array iteration ............................................................................................................................... 10
Basic array operations .................................................................................................................. 11
Comparison operators and value testing ..................................................................................... 12
Array item selection and manipulation ........................................................................................ 14
Vector and matrix mathematics ................................................................................................... 16
Polynomial mathematics .............................................................................................................. 18
Statistics ........................................................................................................................................ 19
Random numbers.......................................................................................................................... 19
Other functions to know about .................................................................................................... 21
Modules available in SciPy ............................................................................................................ 21
2014 M. Scott Shell
1/24
last modified 6/17/2014