Mul

 

 

Overview

The * Function returns the product of its arguments. If no arguments are specified, * returns one.

Complex

The * Function forms the product of a variety of numeric data types and one or more complex numbers as shown in the examples below. The product of xr + i xi with yr + i yi is xr*yr - xi*yi + i (xr* yi + xi*yr).

Usage

The * function is used whenever it is necessary to compute the product of a set of Numbers.

Complex

Use the * function to multiply 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.

 

Syntax


Expression:

(* args...)


Arguments Name Type Description
Argument:args ...Number Any Number Types

Returns:

Computes the product of all the Numbers(or Complex Types) in the argument list. If the argument list is empty, the * function returns 1.




Expression:

(* N1 N2)


Arguments Name Type Description
Argument:N1 N2Number A numeric type.

Returns:

A complex number holding the product of N1, N2, etc.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

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.

++ += + /=
/ * -- -=
- abs acos add1
addMethod addi argument arithmetic
asin atan avg badd
balance bdiv binaryInsert binaryNand
binaryNor binaryNot binaryNxor binarySearch
bitwiseAnd bitwiseNand bitwiseNor bitwiseNot
bitwiseNxor bitwiseOr bitwiseShiftLeft bitwiseShiftRight
bitwiseXor bmod bmul boolean
cadd cdiv char character
cmod cmul code compareEQ
compareGE compareGT compareLE compareLT
compareNE compare complex conjugate
cons cos cosh count
csub date day days360
debugDetective decode deg deleteRows
delete display divi evalInSyncLocalContext
exit exp exportCsv exportSbf
exportTab expt fact fdisplay
fileClose fileCopy fileDisplay fileErase
fileOpen fileReadRecord fileRead fileResize
fileSeek fileWrite filewriteln findBlock
find floor fraction freeBlock
gcd getRecursionCount getTickCount hashString
hour iadd icompareEQ icompareGE
icompareGT icompareLE icompareLT icompareNE
idiv imaginary imod importCsv
importSbf importTab imul insertRows
insert inside inspect integer
isAtom isBitVector isBoolean isBound
isByteVector isChar isCharacter isComplex
isDate isDictionary isDirectory isEqual
isError isEven isExact isFloatVector
isIdentical isInexact isInside isIntegerVector
isInteger isLambda isMatrix isMember
isMoney isNegative isNull isNumberMatrix
isNumberVector isNumber isObjectVector isObject
isOdd isPair isPcodeVector isPositive
isString isStructure isSymbol isText
isType isVector isZero isub
julian kurtosis lcm left
length list log10 log2
log logbase macroReplace makeQuotedList
max median member mid
min minute mod modi
money month muli nadd
ncompareEQ ncompareGE ncompareGT ncompareLE
ncompareLT ncompareNE ndiv new
nmod nmul now nsub
number objectToMatrix objectToNumMatrix objectToNumVector
pair parent parse pi
preAllocateFixedMemoryBlocks product qt rad
random randomize range rank
real refAttributes refValues ref
remove replace rept resize
right round saveObject saveRepository
second setAttributes setBlock setCar
setCdr setLastCdr setq sigmoid
sign sin sinh sizeof
skew sleep sort sql
sqrt srandom stdev stdevp
string sub1 subi submit
substitute substring sum sumsqr
svmRegression system tan tanh
text time type uniqueInsert
var varp vectorBinaryInnerProduct vectorBipolarInnerProduct
vectorCosineInnerProduct vectorCubeInnerProduct vectorDelete vectorExpInnerProduct
vectorFill vectorInnerProduct vectorLogInnerProduct vectorQuartInnerProduct
vectorQuintInnerProduct vectorSigmoidInnerProduct vectorSineInnerProduct vectorSquareInnerProduct
vectorTanInnerProduct vectorTanhInnerProduct writelg writeln
year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE