Difference between revisions of "Python"
From Chemical Engineering @ UP wiki
(→Installation) |
(→Python) |
||
Line 25: | Line 25: | ||
* [http://www.scipy.org/Cookbook/FittingData Fitting data] | * [http://www.scipy.org/Cookbook/FittingData Fitting data] | ||
* [http://www.scipy.org/Cookbook/LoktaVolterraTutorial Numerical integration of ODEs] | * [http://www.scipy.org/Cookbook/LoktaVolterraTutorial Numerical integration of ODEs] | ||
+ | |||
+ | |||
+ | === Symbolic computing === | ||
+ | |||
+ | The [http://www.sympy.org sympy module] is a very capable symbolic module for Python. It plays well with the [http://ipython.org/notebook.html IPython notebook] |
Revision as of 10:21, 20 April 2015
Python
Python is a popular scripting language. It is on the top 10 of the TIOBE index, and is often used in scientific programming outside of the major commercial platforms like Matlab or Mathematica.
- Check out the Python website for more information
Installation
- Windows: The MPR module uses Python(x,y). This is a distribution which supplies a full scientific programming environment. If that local link does not work, look for a Python(x,y) executable installer here or download directly from the Python(x,y) website. Note that the Anaconda distribution is also gaining popularity.
- Linux: Install python along with Matplotlib and Numpy/Scipy
- Mac: Use Anaconda.
Scientific computing
Numeric calculations are done using the NumPy or SciPy modules. Here is a handy starting point for someone used to Matlab/Octave to get into NumpPy/Scipy.
Plotting is done using the matplotlib library. The website contains documentation as well as a large gallery of examples.
The SciPy website also has a lot of examples in their Cookbook. Topical ones include
Symbolic computing
The sympy module is a very capable symbolic module for Python. It plays well with the IPython notebook