Complex Number Calculator
Home Page
Download addup2setup.zip
Complex number operations using AddUp 2
Complex numbers are a little mystifying to some people. Given the
presence of an imaginary component, it seems unreasonable to give any
credence to such values. Complex numbers are easier to accept in light of
a little history that shows how other numbers also seemed unreasonable in
earlier times.
Numbers can be classified in many ways. One way is to use a natural
"gradation" from the more concrete to the more abstract types.
For example:
- Natural numbers. These are the first numbers used
by mankind. They are simply 1, 2, 3, and so on. These values were
created as mental abstraction that could be used to count items. These
abstractions were surely not found "natural" by early men who
had only dealt with tangible objects before, but the concept proved its
value.
- Cardinal numbers. These are merely the natural
numbers plus 0 (zero). The concept of zero as a number was once
puzzling to some, and it had no representation in roman numerals. Since
it stands for "nothing" then why even talk about it? Of
course it came to be accepted as an actual number.
- Integers. These are cardinal numbers to which a
negative sign can be added to represent values smaller than zero. This
concept of "less than nothing" was also initially considered
unreasonable, and the term "negative" was coined on behalf of
those who rejected it.
- Real numbers. These are integers to which a
fractional part (or an additional value shown after a decimal mark) is
added to represent portions of a whole. Here again, "not a
complete item" can be seen as unnatural in some contexts. But all
modern-day students understand the usefulness of real numbers.
- Complex numbers. These are pairs of real numbers
handled as a single unit. One of the two components is simply called
"real". The other is called "imaginary" due to the
fact that it represents a factor of the square root of -1, a value that
cannot be represented using a simple real number. But the imaginary
component is just as real as the "real" component, just like
zero, just like negative numbers, and just like fractional numbers that
once seemed unreasonable. Complex numbers play a vital role in modern
science.
To represent a complex number with AddUp, parentheses are used to hold
a list of two real numbers (a pair). The so-called "real"
component is first in the list; the so-called "imaginary"
component is second. A semi-colon separates both items in the list. For
example, complex number "(1; 2)" has a real component with a
value of 1 and an imaginary component with a value of 2.
Operations on complex numbers are done with AddUp in exactly the same
way as operations on real numbers. The complex number is simply provided
wherever a real number could also be used. For example, multiplying two
complex numbers is done with an expression such as "(1; 2) * (3;
4)".

A set of complex number functions is implemented in AddUp to
explicitly take advantage of these values. They are:
- arg: Returns the argument (or phase angle) of a
complex number.
- conj: Returns the complex conjugate of a complex
number.
- imag: Returns the imaginary component of a complex
number.
- norm: Returns the norm (or absolute value, or
magnitude) of a complex number.
- norm2: Returns the square of the norm of a complex
number.
- polar: Returns a complex number equivalent to the
specified polar representation.
- real: Returns the real component of a complex
number.