pyintro
. . . . . .
Python for Scienti�c Computhing
freealbert
Blog: http://dspandlinux.com
Email: jim2429212@gmail.com
May 1, 2012
. . . . . .
New Tasks
. . . . . .
New Tool
. . . . . .
What is Python?
a remarkably powerful dynamic programming langu...
. . . . . .
Python for Scienti�c Computhing
freealbert
Blog: http://dspandlinux.com
Email: jim2429212@gmail.com
May 1, 2012
. . . . . .
New Tasks
. . . . . .
New Tool
. . . . . .
What is Python?
a remarkably powerful dynamic programming language.
Guido van Rossum
Benevolent Dictator For Life
. . . . . .
Python's feature
� free and opensource
� runs everywhere
. . . . . .
Python's feature
� plays well with others
. . . . . .
Python's feature
� very clear,readable syntax
Implementing the basic QuickSort algorithm in Python
� Mandatory indentation
� boosts developer productivity
Python code is typically 13 to
1
5 the size of equivalent C++ or
Java code.
. . . . . .
. . . . . .
How to replace Matlab?
Python:An Ecosystem for Scienti�c Computing
. . . . . .
NumPy
N-dimensional Array manipulations
� N-dimensional array object � linear algebra functions
� Fourier transforms � random number capabilities
. . . . . .
SciPy
Scienti�c tools for Python
a library of scienti�c tools
depends on the NumPy
SciPy provides moudles for
� statistics
� optimization
� numerical integration
� linear algebra
� Fourier transforms
� signal processing
� image processing
� ODE solvers
� special functions
� ...
. . . . . .
Image Processing
�
PIL
�
pyopencv
. . . . . .
SymPy
SymPy is a Python library for
symbolic mathematics.
SymPy provides moudles for
� Core capabilities
� Polynomials
� Calculus
� Solving equations
� Discrete math
� Matrices
� Geometric Algebra
� Geometry
� Plotting
� Physics
� Statistics
� Printing
. . . . . .
matplotlib
a python 2D plotting library
matplotlib is Object-Oriented and its syntax looks alike matlab's.
Tips:It is neccessary to get a handle on its inheritance relationship.
. . . . . .
Mayavi Project
3D Scienti�c Data Visualization and Plotting
The Mayavi project includes two
related packages for
3-dimensional visualization:
� Mayavi: A tool for easy and
interactive visualization of
data, with seamless
integration with Python
scienti�c libraries.
� TVTK: A Traits-based
wrapper for the
Visualization Toolkit, a
popular open-source
visualization library.
. . . . . .
MayaVi Screenshots
. . . . . .
GUI Programming
� PyQt
�
wxPython
Tkinter PyGtk PyGUI PyKDE ...
. . . . . .
PyPy
the coming future
PyPy is a fast, compliant alternative implementation of Python.
It has several advantages and distinct features:
� Faster speed much (thanks to JIT)
� Less memory usage
� Highly compatible
� Sandboxing
� Stackless
. . . . . .
How fast is PyPY?
It depends greatly on the type of task being performed. The geometric average of all benchmarks is 0.19 or 5.4
times faster than CPython
. . . . . .
PyPy is evolving
. . . . . .
Summary
an e�cient frame for scienti�c computing
本文档为【pyintro】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。