Difference between revisions of "Python"

From Chemical Engineering @ UP wiki
Jump to: navigation, search
(Created page with '== Python == Check out the [http://www.python.org Python website]')
 
Line 1: Line 1:
 
== Python ==
 
== Python ==
 +
Python is a popular scripting language. It is on the top 10 of the [http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html TIOBE index], and is often used in scientific programming outside of the major commercial platforms like Matlab or Mathematica.
  
Check out the [http://www.python.org Python website]
+
* Check out the [http://www.python.org Python website] for more information
 +
 
 +
=== Installation ===
 +
 
 +
* Windows: [ftp://ftp.ee.up.ac.za/pub/windows/maths/Python(x,y)-2.7.2.2.exe Python(x,y)] supplies a full scientific programming environment.
 +
* Linux: Install python along with Matplotlib and Numpy/Scipy
 +
* Mac: Use the [Enthought Python Distribution]
 +
 
 +
=== Scientific computing ===
 +
 
 +
Numeric calculations are done using the [http://numpy.scipy.org/ NumPy] or [http://www.scipy.org/ SciPy] modules.  [http://www.scipy.org/NumPy_for_Matlab_Users Here]
 +
is a handy starting point for someone used to Matlab/Octave to get into
 +
NumpPy/Scipy.
 +
 
 +
Plotting is done using the [http://matplotlib.sourceforge.net/ 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 [http://www.scipy.org/Cookbook Cookbook]. Topical ones include
 +
 
 +
* [http://www.scipy.org/Cookbook/Intersection Solving nonlinear equations]
 +
* [http://www.scipy.org/Cookbook/OptimizationDemo1 Optimisation]
 +
* [http://www.scipy.org/Cookbook/FittingData Fitting data]
 +
* [http://www.scipy.org/Cookbook/LoktaVolterraTutorial Numerical integration of ODEs]

Revision as of 15:59, 26 June 2012

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.

Installation

  • Windows: Python(x,y) supplies a full scientific programming environment.
  • Linux: Install python along with Matplotlib and Numpy/Scipy
  • Mac: Use the [Enthought Python Distribution]

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