Sub
|
The - Function returns the difference of its arguments. If the argument list contains only one argument, - returns its negative.
The - function subtracts forms the difference between a variety of numeric data types and a complex number as shown in the examples below.
Usage
The - function is used whenever it is necessary to compute the difference of a set of Numbers.
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.
Expression: | (- num ...) |
---|
Arguments | Name | Type | Description |
Argument: | num ... | Number | One or more Numbers |
---|
Returns: | Computes the difference of all the Numbers in the argument list.If the argument list contains only one argument, - function returns the negative of the Number |
---|
Expression: | (- num ...) |
---|
Arguments | Name | Type | Description |
Argument: | num ... | Number | One or more Numbers |
---|
Returns: | 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.
Here are the links to the data types of the function arguments.
Number | Integer | Complex |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|