|
Div
|
The / function forms the ratio of a variety of numeric data types with a
complex number as shown in the examples below. The ratio of two complex numbers is given
by: (xr + i xi) / (yr + i yi) is (xr + i xi) * (yr - i yi) / (yr * yr + yi * yi)
The / function is used to form the ratio between numeric data types where at least one of the arguments is complex. Do not use if an immediate type, such as a real number, would suffice. Since complex numbers are heap objects, they require more space and operations on these types are slower than on immediate types.
(/ num ...) A complex number holding N1 / N2 / N3 / etc.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
The ratio of a variety of data types with a complex number is shown here.
The result of the operation is shown in the comment. The first double shown is the
real part of the result. The second number shown is the imaginary part of the
result. The ndiv function is tested here with Complex Number arguments.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types num ... One or more Numbers Number
Returns:
Examples
Argument Types
Number
Integer
Complex
How do I contact the AIS team?