Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



12 Great Programs
Posted:
Jan 3, 2018 3:41 PM


Windows programs, written in Visual Basic v6, requiring available 5 VB6 runtime files. Post or Email if interested. Free.
General :
12 programs and all needed and related files are provided. Please refer to SA18.docx which is a paper on the SA18 Chaos Engine, and Julias.docx, which is needed for data for the Julia program. The 12 programs developed in Visual Basic 6 will run under any version of Windows, and require the included 5 VB6 runtime files, Asycfilt.dll, Msvbvm60.dll, Oleaut32.dll, Olepro32.dll and Stdole2.tlb, which should be either at the same location, or more properly at C:\Windows\System
or wherever other DLLs reside. Programs are intended for the maximum normal screen resolution of 1920 x 1080.
For the programs requiring a plot, Julia and Game of Life, I favor a Yellow display on a dark Blue background. Light plotted figures on a darker complimentary background look best. Secondary colors, being a combination of two primary colors, are therefore brighter than the primary colors. That leaves : Cyan (absence of Red) on a Red background, Magenta (absence of Green ) on a Green background, and Yellow (absence of Blue ) on a Blue background.
Program Summaries
..
..
Factoring ( factors.exe ) :
Program will return the prime factors of a number. Factoring is interesting enough, but also significant as it is my understanding that modern encryption schemes rely on factoring of very large numbers (way beyond my program ). Enter some large number then click to factor.
LifeW32 ( LifeW32.exe ) :
Nice rendition of John Conway's famous game. Select from 4 resolutions, then let it run. Double click to exit.
Logistic Equation ( Logistics Equation.exe ) :
Nice rendition of the time honored plot.
Julia ( Julia.exe ) :
Program will display a Julia plot, for a Julia characterized by the complex number C. The 4 inputs to the program are : {C(real)} , {C(imag)}, {Field Hor.} and {Field Vert.}. Default data is loaded for Julia number (08), but can enter / edit the values as desired for other Julias. Julias.docx has data for 18 interesting Julias. The math involved, though voluminous, is nevertheless rudimentary, and I'm fascinated how such intricate and interesting figures develop.
Mandelbrot ( Mandelbrot.exe ) :
The Mandelbrot set is generated according to Julia plots. Each Julia has a characteristic complex number C = [ C(real) + C(imag) i ] . Starting with any number A on the complex plane, then the following is performed recursively: A (new) = A (old) {squared } + C. If on many repeats, the magnitude of A remains at or below 2, then A is plotted as a point in the Julia defined by C. Julia plots are beautiful and interesting. If the Julia plot includes the origin ( 0 + 0i ) and is connected ( can reach between any points without leaving the plotted figure ), then C is by definition part of the Mandelbrot set.
The Mandelbrot set on the complex plane is traditionally plotted black. In my program version, points outside the set are plotted in alternating yellow and dark blue colors, according to how fast the corresponding Julia "escapes" beyond magnitude 2, which qualitatively is a measure of how "UNMandelbrot like" the point. Ever smaller areas of the Mandelbrot can be selected and expanded for exploration. Click the upper left corner and the lower right corner of the area. Rectangle corners will show temporarily in Magenta. Click in the area to expand and explore. Shift Click to exit. Note that, although it's easy to determine if any point is within the Mandelbrot, a clear boundary between what is inside and outside the Mandelbrot, can never be found for most of the Mandelbrot !
Mortgage ( Mortgage.exe ) :
Computes the monthly payment. Default is my first mortgage in 1983. Click Xs above and below to raise and lower digits respectively.
Quadratic Calculation ( qdrtc.exe ) :
Computes the 2 roots of the quadratic AX2 + BX + C = 0 .
Retirement Savings ( RetSav.exe ) :
Imagine you're starting a working career, and want to contribute monthly to an interest earning account, to cover your retirement. Inflation is assumed at one rate and you want to inflate your contributions at another rate. This makes 3 rates total : earnings, inflation, and contributions inflation. Further, you want an annual provision at some figure ( expressed as today's dollars ). You estimate years of savings and years of retirement. You also have a lump sum to add at the start. Given these 7 parameters, program will compute : initial monthly payment, final monthly payment, final monthly payment (today's dollars), account value at retirement, initial annual provision at retirement and final annual provision. Developed from a system of differential equations. Quantities turn green when payments are negative as in yielding instead of paying.
SA18 Chaos Engine ( SA18 Chaos Engine.exe ) :
A fascinating study of a type of semichaos. All is detailed in SA18.docx. Some of my finest work. A library of 512 semichaotic systems is included in the library binary data file sa18lib.bin which must be with the program. On starting, the program picks a system at random and displays the system attractor, the tweaking and adjusting controls and the 18 parameters for each system. Use the scroll to navigate among the systems. Click any parameter for tweaking. It will display in red. Use the Add or Sub buttons according to the table in SA18.docx. The image will clear and redisplay to show the effect of the tweak. Adjust the size, position and / or aspect ratio of any image using the appropriate button, without changing the character of the image as in tweaking. Save a tweaked and / or adjusted image in the library by holding both Shift and Ctrl and clicking Save. Wait a moment for the tone.
Sierpinski ( Sierpinski.exe ) :
Consider any triangle with vertices A, B and C. Take a point anywhere, not generally inside or outside the triangle, say ( X1, Y1 ), and perform the following repeatedly.
Pick a vertex at random ( A, B, or C ), and draw a line from the point to the vertex. Take the midpoint of the line and assign this as the next point say ( X2, Y2 ). Plot these ongoing successive points for very many points and get a fascinating figure with triangular areas of varying sizes.
I'd like to say this was my discovery / creation, but it originated with a Polish mathematician, Watclaw Sierpinski at the start of the 20th century. This "thing" actually continues down on ever smaller scales infinitely !
Each triangular area is a completely self similar reproduction of all other equal, larger and smaller triangular areas. Quite amazing.
Simpson ( Simpson.exe ) :
The Simpson method will provide a very close approximation of an area under a known but nonintegrable function y = f(x) over a prescribed interval. Although the function cannot be integrated, the dependent and independent variables y and x, can be calculated. The interval is divided into an even number of equal subintervals, and y computed at all points at the subinterval ends. Parabolas ( which can be integrated ) are defined for every 3 overlapping points, and the areas of these computed and summed to very closely approximate the total area under the function. The default function, which regrettably can only be edited through the developing software program, is : y = e ^ x + x ^ 3, which can be precisely integrated and used as a check on the program. From 0 to 3, the program calculated integral using 400 intervals is 39.3355, essential identical to the precise integral calculation. Advise if you want to try some other y = f(x) which can't be integrated.
Worm ( Worm.exe ) :
A worm navigates randomly to build ever higher levels on the field. Semi random complimentary colors are used for levels. Move the mouse to exit.
Stephen G. Giannoni, P.E. (retired)
311 Scudder, 117682946
casagiannoni@optonline.net
( USA ) (631) 7572793



