Prim Algorithm: Executable or Text version

I have used the feature of BB4W Procedures to recursively call the same Procedure in order to drastically speed up my implenetation of the Prim Algorithm for finding a Minimum Spanning Tree.

PrimMove: Executable or Text version

Implements a MOVING version of the famous Prim Algorithm whereby the minimum spanning tree is continually updated, as the initial points move around.

Hot and Cold Metal: Executable or Text version

This program numerically solves the Heat Equation in 2 dimensions for a "cold" metal plate with a "hot" pattern on its surface (or vice versa). An analytical solution of this equation in requires rather advanced mathematics, but a numerical solution is far simpler. Of course, it's only an approximation, but it's near enough. For an outline of the method I use, click
HERE for a Word document I've prepared.

FIREWORKS: Executable or Text version

COMPLETELY REWRITTEN MAY 2007

This is a trivial looking program which uses some fairly advanced mathematics simply for the sake of accuracy! As it flies through the air it meets AIR RESISTANCE. I have taken account of the effects of air resistance, modeled as proportional to the square of the speed of the firework.

ROCKET : Semi-Ballistic Missiles: Executable or Text version

COMPLETELY REWRITTEN MAY 2007

An extension to the Fireworks program, the Differential Equations for the Rocket program can only be solved numerically. The equations incorporate the changing mass of the rocket as fuel is used up, with a break-point once the fuel is gone, and air resistance according to the square of the speed affecting the flight of the missile throughout.
On the basis that elegance is always superior, this rewritten version is altogether simpler in structure, shorter, quicker, generally adaptable and more accurate than my previous attempt. An excellent example of the K.I.S.S. principle (Keep It Simple, Stupid).

IMPLICIT CURVES: Executable or Text version

Usually, curves are drawn from an EXPLICIT formula such as y=sin(x) , where y is on one side of the equals sign, and all the stuff to do with x is one the other side. An IMPLICIT function is of the form F(x,y)=0. Most formulae cannot be written explicitly, but this very simple program allows you to see what something like x*x + y*y +sin(xy) -16 =0 looks like, for example.


Return to Top Page
                                                                                                      Next Page