|
Sub
|
The - function subtracts forms the difference between a variety of
numeric data types and a complex number as shown in the examples below.
The - function is used to form the difference between numeric data types where at least one of the subtrahends 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 numeric complex number holding the value of N1 less than the value of N2, N3, etc.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
The difference of a variety of data types and 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 nsub 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?