www.delorie.com/gnu/docs/guile/guile_182.html  search 
Buy GNU books!  
[ < ]  [ > ]  [ << ]  [ Up ]  [ >> ]  [Top]  [Contents]  [Index]  [ ? ] 
Many of Guile's numeric procedures which accept any kind of numbers as arguments, including complex numbers, are implemented as Scheme procedures that use the following real numberbased primitives. These primitives signal an error if they are called with complex arguments.
For the hyperbolic arcfunctions, the Guile library exports C functions
corresponding to these Scheme procedures, but taking and returning
arguments of type double
rather than the usual SCM
.
For all the other Scheme procedures above, except expt
and
atan2
(whose entries specifically mention an equivalent C
function), the equivalent C functions are those provided by the standard
mathematics library. The mapping is as follows.
Scheme Procedure  C Function  
$abs  fabs 

$sqrt  sqrt 

$sin  sin 

$cos  cos 

$tan  tan 

$asin  asin 

$acos  acos 

$atan  atan 

$exp  exp 

$log  log 

$sinh  sinh 

$cosh  cosh 

$tanh  tanh 
Naturally, these C functions expect and return double
arguments.
[ < ]  [ > ]  [ << ]  [ Up ]  [ >> ]  [Top]  [Contents]  [Index]  [ ? ] 
webmaster  delorie software privacy 
Copyright © 2003 by The Free Software Foundation  Updated Jun 2003 