You are viewing articles in the Math category &rarr


How to Draw a Julia Fractal on the Form’s Canvas

Posted December 15th @ 1:02 pm by m3Rlin

This source code shows you how to draw a Julia fractal on the form’s Canvas. Although some of the Integer variables could be changed to Byte or Word variables they have not been changed because the Integer type is a native x86 type and calculations on Integers are the fastest.
This function is based on the [...]

How to Get the Smallest Number From an Array

Posted December 15th @ 1:01 pm by m3Rlin

The idea is the same as in tip 6.1 but this functions finds the smallest number.

{ You can easily modify this function to accept other numerical types }
function MinInteger(const aInt: array of Integer): Integer;
var
iI: Integer;
begin
Result := aInt[Low(aInt)];
for iI := Low(aInt) + 1 to High(aInt) do
if [...]

« Previous EntriesNext Entries »