Mathematics Python scripts - Top 4 Download

Mathematics Python script downloads

Fractal tree

This script could be used to compute and display a 2D fractal tree. A fractal tree is constructed iteratively by growing new branches, which have a specific length ratio with respect to the parent branch (scaling factor). The fan angle, the number of new branches and number of generations are user controlled. The ...
Python

NumPy

The fundamental package needed for scientific computing with Python is called NumPy.  This package contains: - a powerful N-dimensional array object - sophisticated (broadcasting) functions - basic linear algebra functions - basic Fourier transforms - sophisticated random number capabilities - tools for integrating Fortran code. Besides ...
Python

Modular toolkit for data processing

Modular toolkit for Data Processing (MDP) is a Python data processing framework. Implemented algorithms include: Principal Component Analysis (PCA), Independent Component Analysis (ICA), Slow Feature Analysis (SFA), Growing Neural Gas (GNG), Factor Analysis, Fisher Discriminant Analysis (FDA), and Gaussian Classifiers. From the user's perspective, MDP consists of a collection of trainable ...
Python

Farey Sequence

This function provides farey sequence, F(n), for any integer n.There's probably a more elegant solution out there, but I couldn't find it. Note: it doesn't prepend (0,1) and append (1,1)... ...
Python

OpenMAD

The OpenMAD project aims to provide versatile software implementations of mathematical models based on the theory of differential games which simulate the long term effects of war. Newtonian physics is used to simulate conflicts in a virtual environment and provide detailed data during all stages of simulation. Requirements: · MySQL ...
Python

Charlemagne

Charlemagne is a genetic programming application which aims to be highly configurable and applicable to a broad range of problems.It is written in Python and Lisp and to some degree is extensible in both languages. It features built-in input-output mapping support, but also provides the ability to define complex fitness calculators ...
Python

RunningCalc

This is a trivial calculator "shell" with a running total.As trivial as it is, I find it to be more useful than a normal calculator when doing my checkbook because of the ever-present running total. ...
Python

Wolfram style cellular automata

This is a little script that uses Python to generate the cellular automata that Wolfram discusses in his book "A New Kind of Scilfram disquot;.The script uses the Python Imaging Library to render the output, but you could replace this with text or any other method of visualization. ...
Python

Sparse

'sparse' is a matrix class based on a dictionary to store data using 2-element tuples (i,j) as keys (i is the row and j the column index). The common matrix operations such as 'dot' for the inner product, multiplication/division by a scalar, indexing/slicing, etc. are overloaded for convenience.When used in conjunction ...
Python

Natural Language Toolkit

NLTK, the Natural Language Toolkit, is a suite of program modules, data sets and tutorials supporting research and teaching in computational linguistics and natural language processing. NLTK is ideally suited to students who are learning NLP (natural language processing) or conducting research in NLP or closely related areas, including empirical linguistics, ...
Python

Accepting Four Points in 2 space

Photographic document images are often rotated, if only slightly. This code mediates an input of a series of four points--assumed to be the corners of a rectangular document--in any order, as mouse clicks.Then it determines the orientation of the points and calculates a "quality" value, as an indication to the user ...
Python

Access Cairo surface from numpy and pygame

This script aliases the memory from a cairo surface so that you can manipulate the bits as a numpy array, or display/manipulate the image in pygame. ...
Python

Descriptive statistical analysis tool

This script is a Python module implementing a class which can be used for computing numerical statistics for a given data set.This recipe implements a descriptive statistical analysis class. It's intended to aid in computing numerical statistics for a given data set. It's well documented and hopefully useful. ...
Python

NumExp

NumExp is a family of open-source applications for numerical computation.It is based on a server with the NumExp core functionalities. This server comunicates with potencial clients using a simple Corba interface. ...
Python

Factorial

This code gets factorial of a number and for negative numbers returns 1.The recursive implementation of factorial is easy but using lambda keyword of python it becomes a bit tough as we can't use conditional if else in lambda. If a user wants to return a factorial function on the fly ...
Python

Extended great common divisor function

This script contains a function that finds out the gcd(a,b)(great common divisor of a and b) as a linear conbination of a anb b, ax by=gcd(a,b). ...
Python

Pygsl

Pygsl provides a python interface for the GNU scientific library (gsl). The wrapper covers nearly everything GSL provides. ...
Python