8
SciPy Marcelo Cure

SciPy - Scientific Computing Tool

Embed Size (px)

Citation preview

Page 1: SciPy - Scientific Computing Tool

SciPy

Marcelo Cure

Page 2: SciPy - Scientific Computing Tool

Scientific Computing Tool

Open Source tool written in Python

Set of 12 packages Focused in mathematics, science and engineering

Page 3: SciPy - Scientific Computing Tool

Core Packages NumPy SciPylibrary Matplotlib Sympy pandas IPython

Page 4: SciPy - Scientific Computing Tool

NumPy Powerful N-dimensional array objects

Tool for integrating C/C++ and Fortran code

Useful for numerical work Good performance working with large arrays

Page 5: SciPy - Scientific Computing Tool

NumPyimport numpyarange(15).reshape(3,5)array([[ 0, 1, 2, 3, 4],[ 5, 6, 7, 8, 9],[10, 11, 12, 13, 14]])

arange( 0, 2, 0.3)array([ 0. , 0.3, 0.6, 0.9, 1.2, 1.5, 1.8])

linspace( 0, 2, 9) array([ 0. , 0.25, 0.5 , 0.75, 1. , 1.25, 1.5 , 1.75, 2. ])

Page 6: SciPy - Scientific Computing Tool

Matplotlib Lib for generating 2D and 3D charts

Emulates MatLab in a Pythonic way

Can be used in combination with NumPy for getting good performance with large arrays

Page 7: SciPy - Scientific Computing Tool

Matplotlibimport matplotlib.pyplot as mpl

labels= ['Agua', 'terra']sizes= [75, 25]colors= ['blue', 'brown']explode = (0, 0.1)mpl.pie(sizes, explode=explode, labels=labels, colors=colors, autopct='%1.1f%%', shadow=True)

mpl.axis('equal')mpl.savefig('/home/marcelocure/lalala.png')mpl.show()

Page 8: SciPy - Scientific Computing Tool

Thank you!

http://www.scipy.orghttp://matplotlib.org/

http://www.numpy.org/