Complex Plugin

Complex Plugin for REALbasic 5 allows you to construct programs which can handle complex numbers much like doubles and integers are handled. Complex numbers are represented by two doubles, not by the multi-precision numbers used by my MPCalc and Precision plugins.
As a Carbon, PPC, and x86 plugin, it can be used to build Mac OS X, Mac OS 9.x, or Windows applications.
The operators +, -, *, and / are overloaded. So, for example, these REALbasic statements are valid:
Dim x,y,z As Complex
x = New Complex(1,2)
y = New Complex(3,4)
z = x*y
EditField1.Text = z.Str // shows -5, 10

And this statement is also valid:
z = 2*x // z will represent (2,4)

Almost all the REALbasic built in functions are overloaded to take and return complex arguments.

Version 1.4 corrects a bug when an uninitialized Complex object is used as an argument of a function.
Version 1.5 allows complex numbers to be compared in an If statement.
Version 1.6 has a complex conjugate function. And you can set the number of significant figures in string output.
Version 1.7 has a faster square root function. And it corrects a possible error in the Pow function.

As a Carbon, PPC, and x86 plugin, it can be used to build Mac OS X, Mac OS 9.x, or Windows applications.


Complex Plugin was programmed in C++ and compiled with CodeWarrior 8.3.
Freeware.


Download Complex Plugin v 1.7. The download includes documentation.

ComplexPlugin.hqx (88 KB)


Back To Bob Delaney's Home Page