Program
|
Download
|
Ordinary Differential Equations - Gnu Scientific Library (GSL)
The program demonstrates a dynamic-link library (DLL) call:
Ordinary differential equations - from the Gnu Scientific Library.
|
gsl-ode.num |
Histogram - Gnu Scientific Library (GSL)
The program demonstrates a dynamic-link library (DLL) call:
Histograms - from the Gnu Scientific Library.
|
gsl-histogram.num |
Histograms of various probablity distributions
The program generates random sequences with Uniform, Exponential, and Normal (Gaussian) probability distributions and displays histograms of them.
|
prob-hist.num |
A pseudo-color image
The program shows how to define a color table for displaying
pseudo-colors images.
|
pseudo-color.num.num |
Two-dimesional interpolation of an image
The program defines a two-dimensional interpolation function. It then uses this function to magnify an image by a factor of four with minimum degradation in image quality.
Note that in addition to the program itself you need also to download the image (lizard.bmp) and save it in the same directory.
|
interp2d.num
lizard.bmp |
Life
An implementation of the well known Game of Life, invented by the mathematician John Conway. The program uses an Image viewer to display an animated view of the game’s 2-dimensional playground. |
life.num |
Table viewer
The program demonstrates a Table viewer with formatted titles.
|
table.num |
Monthly work sheet
This program creates a simple one-line-per-day work sheet for the given month and year. The sheet has a month/year title and each line has a date and day titles with room for a comment. Weekend days are marked. The sheet is intended to be used in its printed form.
The program includes an algorithm for calculating the day of the week for any given date taking into account leap years. |
month sheet.num |
Gravitation
A simulation of two bodies thrown in the air at a certain velocity and launching angle. The bodies fall down in a ballistic trajectory. |
grav.num |
Lissajous Figures
A simple program that generates Lissajous patterns and displays an animated view of them. |
lissa.num |
Fourier Series
Fourier series are demonstrated by building a square wave and a sawtooth wave as sums of sine waves. We see how adding more terms to the sum gets us closer to the desired wave forms. |
fours.num |
Fourier Transform
We use the fast Fourier transform (FFT) to calculate the spectrum of a simple sine wave, a sum of two sine waves, and a decaying sine wave. The user can change the frequency, the decay rate, and other parameters and see how they affect the results. |
fft.num |
Correlation of Noisy Signals
Correlation of noisy signals is demonstrated using the fast Fourier transform (FFT) algorithm. We show how important it is to correctly filter the signals before calculating the correlation. |
corr.num |
Towers of Hanoi
A recursive algorithm is demonstrated by showing a solution to the well known game - the Towers of Hanoi. |
hanoi.num |
Nonlinear fit
An implementation of the Levenberg-Marquardt algorithm is used to demonstrate fitting of experimental data to a given model. The model we use in this example is a sum of three Gaussians with variable positions, amplitudes, and widths. |
nlfit.num |
Polynomial fit
Fitting a polynomial to a set of data points.
|
fitpoly.num |
General linear least squares fit
Fitting a set of basis functions to a set of data points.
|
fitbasis.num |
Fit
Fitting polynomials of various degrees and a Gaussian to a random set of points.
|
fit.num |