code

TwitterFacebook
Get flash to fully experience Pearltrees
http://thelinuxexperiment.com/guinea-pigs/tyler-b/compile-windows-programs-on-linux/ Windows?? *GASP!* Sometimes you just have to compile Windows programs from the comfort of your Linux install. This is a relatively simple process that basically requires you to only install the following (Ubuntu) packages:

Compile Windows programs on Linux | The Linux Experiment

http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.contourf

pyplot

Plot lines and/or markers to the Axes . args is a variable length argument, allowing for multiple x , y pairs with an optional format string. For example, each of the following is legal: plot ( x , y ) # plot x and y using default line style and color plot ( x , y , 'bo' ) # plot x and y using blue circle markers plot ( y ) # plot y using x as index array 0..N-1 plot ( y , 'r+' ) # ditto, but with red plusses
http://docs.scipy.org/doc/numpy/reference/generated/numpy.array.html object : array_like An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. dtype : data-type, optional The desired data-type for the array.

numpy.array — NumPy v2.0.dev-0c1c499 Manual

Graphics with Matplotlib

Matplotlib is a large and sophisticated graphics package for Python written in object oriented style. However, a layer built on top of this basic structure called pyplot accesses the underlying package using function calls. We describe a simple but useful subset of pyplot here. 4.1 Line plots http://physics.nmt.edu/~raymond/software/python_notes/paper004.html
https://scondemth361.wordpress.com/root-finding-method/ A root finding algorithm is a numerical method of finding an for a given function such that .

Root Finding Method « Numerical Analysis

http://wiki.python.org/moin/ParallelProcessing

ParallelProcessing

A number of Python-related libraries exist for the programming of solutions either employing multiple CPUs or multicore CPUs in a symmetric multiprocessing (SMP) or shared memory environment, or potentially huge numbers of computers in a cluster or grid environment. This page seeks to provide references to the different libraries and solutions available. Symmetric Multiprocessing Some libraries, often to preserve some similarity with more familiar concurrency models (such as Python's threading API), employ parallel processing techniques which limit their relevance to SMP-based hardware, mostly due to the usage of process creation functions such as the UNIX fork system call. However, a technique called process migration may permit such libraries to be useful in certain kinds of computational clusters as well, notably single-system image cluster solutions ( Kerrighed , OpenSSI , OpenMosix being examples).
http://docs.python.org/release/2.6.4/library/multiprocessing.html#using-a-pool-of-workers New in version 2.6. 17.6.1. Introduction multiprocessing is a package that supports spawning processes using an API similar to the threading module. The multiprocessing package offers both local and remote concurrency, effectively side-stepping the Global Interpreter Lock by using subprocesses instead of threads. Due to this, the multiprocessing module allows the programmer to fully leverage multiple processors on a given machine.

17.6. multiprocessing — Process-based “threading” interface — Python v2.6.4 documentation

http://www.parallelpython.com/content/view/15/30/

Parallel Python - Parallel Python documentation

Module API Quick start guide, SMP Quick start guide, clusters Quick start guide, clusters with auto-discovery Advanced guide, clusters Command line arguments, ppserver.py Security and secret key ppserver.py stats and PID file example PP FAQ 1) Import pp module: import pp 2) Start pp execution server with the number of workers set to the number of processors in the system
http://www.tutorialspoint.com/python/index.htm

Python Tutorial

Python is a general purpose interpreted, interactive, object-oriented and high-level programming language. Python was created by Guido van Rossum in the late eighties and early nineties. Like Perl, Python source code is also now available under the GNU General Public License (GPL). This tutorial has been designed for software programmers with a need to understand the Python programming language starting from scratch. This tutorial will give you enough understanding on Python programming language from where you can take yourself at higher level of expertise.

The Python Tutorial — Python v2.7.2 documentation

http://docs.python.org/tutorial/index.html Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, http://www.python.org/ , and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation. The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C).
Python has been an object-oriented language from day one. Because of this, creating and using classes and objects are downright easy. This chapter helps you become an expert in using Python's object-oriented programming support. If you don't have any previous experience with object-oriented (OO) programming, you may want to consult an introductory course on it or at least a tutorial of some sort so that you have a grasp of the basic concepts.

Python - Object Oriented

Rohübersetzung -- bitte um Rückmeldungen über Fehler und Unklarheiten an glingl@aon.at 12.1 Benutzerdefinierte zusammengesetzte Datentypen Nachdem wir einige von Pythons eingebauten Datentypen benützt haben, sind wir nun bereit einen benutzerdefinierten Datentyp zu erzeugen: den Punkt . Betrachten wir zunächst den Begriff dess mathematischen Punktes. In zwei Dimensionen ist ein Punkt ein Paar von zwei Zahlen (Koordinaten) die zusammen als ein einziges Objekt behandelt werden. In der mathematischen Notation werden Punkte oft als Zahlenpaare in runden Klammern geschrieben, mit einem Komma zwischen den Koordinaten.

Kapitel 12: Klassen und Objekte

Node: Programming with pipes , Next: Low-level file routines , Previous: Single-character input and output , Up: Input and output Programming with pipes There may be times when you will wish to manipulate other programs on a GNU system from within your C program. One good way to do so is the facility called a pipe .

The GNU C Programming Tutorial

function <cstdio> char * fgets ( char * str, int num, FILE * stream ); Get string from stream Reads characters from stream and stores them as a C string into str until ( num -1) characters have been read or either a newline or the end-of-file is reached, whichever happens first. A newline character makes fgets stop reading, but it is considered a valid character by the function and included in the string copied to str .

fgets

C von A bis Z – 13 Kommandozeilenargumente

In der heutigen »Look&Feel«-Zeit scheinen Kommandozeilenprogramme schon ein wenig veraltet zu sein. Die nächste Generation wird mit Begriffen wie »Kommandozeile« oder »Konsole« wohl nichts mehr anzufangen wissen. Wenn aber z. B. ältere Programme überholt werden müssen, wird der Umgang mit der Kommandozeile wieder wichtig.