conjugate (ANSI and GNU Common Lisp Document)

Next: phase, Previous: complexp, Up: Numbers Dictionary

#### 12.2.48 conjugate [Function]

`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)))