complex

 

 

Overview

The complex function forms a complex number from its two numeric arguments. The value of the first argument is the real part of the result and the value of the second argument is the imaginary part.

Usage

The complex function is used to convert a pair of numeric values into a complex number.

 

Syntax


Expression:

(complex Re Im)


Arguments Name Type Description
Argument:ReNumber A numeric type.
Argument:ImNumber A numeric type.

Returns:

A complex number where the real part is the value of Re and the imaginary part is the value of Im.



 

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.

Complex

Here are also a number of links to functions having arguments with any of these data types.

++ += + /=
/ * -- -=
- abs argument binaryInsert
boolean character compareEQ compareGE
compareGT compareLE compareLT compareNE
compare complex conjugate cons
display imaginary inside integer
isAtom isBitVector isBoolean isByteVector
isChar isCharacter isComplex isDate
isDictionary isDirectory isEqual isError
isFloatVector isIdentical isInside isIntegerVector
isInteger isLambda isMatrix isMember
isMoney isNumberMatrix isNumberVector isNumber
isObjectVector isObject isPair isPcodeVector
isString isStructure isSymbol isText
isType isVector length list
macroReplace makeQuotedList member money
new number objectToMatrix objectToNumMatrix
objectToNumVector pair parent parse
real ref remove saveObject
setCar setCdr setLastCdr setq
sizeof string type uniqueInsert
vectorFill writelg writeln

Analytic Information Server (AIS)

AIS Component Systems

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