Tools/Python Tools

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{TOC right}} [http://www.python.org/ Python] can be used to achieve results similar to Octave or Matlab. Additionally to numerical computation, packa...")
 
(Linux)
Line 20: Line 20:
 
Install the IDE:
 
Install the IDE:
 
  sudo apt-get install spyder
 
  sudo apt-get install spyder
 +
 +
This also installs <code>numPy</code>, <code>sciPy</code> and <code>matplotlib</code>.
 +
 +
Launch <code>Spyder</code>, and in the console type:
 +
t = linspace(0, 10, 100);
 +
plot(t, sin(t));
  
 
=== Windows ===
 
=== Windows ===

Revision as of 13:12, 2 April 2013

Contents

Python can be used to achieve results similar to Octave or Matlab. Additionally to numerical computation, packages allow to solve linear systems.

Numerical computation with Python mainly bases on the following libraries:

The Spyder IDE provides a MATLAB-like development interface. As a simple alternative, IPython provides a web-based GUI.

Installation

Linux

Installation can be done on a package basis, with easy_install or pip.

Install the IDE:

sudo apt-get install spyder

This also installs numPy, sciPy and matplotlib.

Launch Spyder, and in the console type:

t = linspace(0, 10, 100);
plot(t, sin(t));

Windows

Download Python(x,y).

This will install Python and other components of your choice.

Personal tools
Namespaces
Variants
Actions
Navigation
Browse
Toolbox