ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   12 Numbers   12.2 Dictionary of Numbers

12.2.48 conjugate Function

Syntax:
conjugate number    conjugate

Arguments and Values:
number - a number.

conjugate - a number.

Description:
Returns the complex conjugate of number. The conjugate of a real number is itself.

Examples:
 (conjugate #c(0 -1))  #C(0 1)
 (conjugate #c(1 1))  #C(1 -1)
 (conjugate 1.5)  1.5
 (conjugate #C(3/5 4/5))  #C(3/5 -4/5)
 (conjugate #C(0.0D0 -1.0D0))  #C(0.0D0 1.0D0)
 (conjugate 3.7)  3.7

Notes:
For a complex number z,

 (conjugate z) ==(complex (realpart z) (- (imagpart z)))

Allegro CL Implementation Details:
None.

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2019 - File last updated 02-07-2019