www.delorie.com/gnu/docs/guile/guile_179.html   search  
 
Buy GNU books!


Guile Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

21.2.10 Complex Number Operations

Scheme Procedure: make-rectangular real imaginary
C Function: scm_make_rectangular (real, imaginary)
Return a complex number constructed of the given real and imaginary parts.

Scheme Procedure: make-polar x y
C Function: scm_make_polar (x, y)
Return the complex number x * e^(i * y).

Scheme Procedure: real-part
Return the real part of the number z.

Scheme Procedure: imag-part
Return the imaginary part of the number z.

Scheme Procedure: magnitude
Return the magnitude of the number z. This is the same as abs for real arguments, but also allows complex numbers.

Scheme Procedure: angle
Return the angle of the complex number z.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003