/[guile]/guile/guile-core/doc/ref/scheme-data.texi
ViewVC logotype

Diff of /guile/guile-core/doc/ref/scheme-data.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by kryde, Sat Jun 7 00:18:33 2003 UTC revision 1.32 by kryde, Wed Jun 11 22:57:13 2003 UTC
# Line 1015  Return the hyperbolic arccosine of @var{ Line 1015  Return the hyperbolic arccosine of @var{
1015  Return the hyperbolic arctangent of @var{x}.  Return the hyperbolic arctangent of @var{x}.
1016  @end deffn  @end deffn
1017    
1018  For the hyperbolic arc-functions, the Guile library exports C functions  C functions for the above are provided by the standard mathematics
1019  corresponding to these Scheme procedures, but taking and returning  library.  Naturally these expect and return @code{double} arguments
1020  arguments of type @code{double} rather than the usual @code{SCM}.  (@pxref{Mathematics,,, libc, GNU C Library Reference Manual}).
   
 @deftypefn {C Function} double scm_asinh (double x)  
 @deftypefnx {C Function} double scm_acosh (double x)  
 @deftypefnx {C Function} double scm_atanh (double x)  
 Return the hyperbolic arcsine, arccosine or arctangent of @var{x}  
 respectively.  
 @end deftypefn  
   
 For all the other Scheme procedures above, except @code{expt} and  
 @code{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.  
1021    
1022  @multitable {xx} {Scheme Procedure} {C Function}  @multitable {xx} {Scheme Procedure} {C Function}
1023  @item @tab Scheme Procedure @tab C Function  @item @tab Scheme Procedure @tab C Function
# Line 1042  mathematics library.  The mapping is as Line 1030  mathematics library.  The mapping is as
1030  @item @tab @code{$asin}     @tab @code{asin}  @item @tab @code{$asin}     @tab @code{asin}
1031  @item @tab @code{$acos}     @tab @code{acos}  @item @tab @code{$acos}     @tab @code{acos}
1032  @item @tab @code{$atan}     @tab @code{atan}  @item @tab @code{$atan}     @tab @code{atan}
1033    @item @tab @code{$atan2}    @tab @code{atan2}
1034  @item @tab @code{$exp}      @tab @code{exp}  @item @tab @code{$exp}      @tab @code{exp}
1035    @item @tab @code{$expt}     @tab @code{pow}
1036  @item @tab @code{$log}      @tab @code{log}  @item @tab @code{$log}      @tab @code{log}
1037  @item @tab @code{$sinh}     @tab @code{sinh}  @item @tab @code{$sinh}     @tab @code{sinh}
1038  @item @tab @code{$cosh}     @tab @code{cosh}  @item @tab @code{$cosh}     @tab @code{cosh}
1039  @item @tab @code{$tanh}     @tab @code{tanh}  @item @tab @code{$tanh}     @tab @code{tanh}
1040    @item @tab @code{$asinh}    @tab @code{asinh}
1041    @item @tab @code{$acosh}    @tab @code{acosh}
1042    @item @tab @code{$atanh}    @tab @code{atanh}
1043  @end multitable  @end multitable
1044    
1045  @noindent  @code{asinh}, @code{acosh} and @code{atanh} are C99 standard but might
1046  Naturally, these C functions expect and return @code{double} arguments.  not be available on older systems.  Guile provides the following
1047    equivalents (on all systems).
1048    
1049    @deftypefn {C Function} double scm_asinh (double x)
1050    @deftypefnx {C Function} double scm_acosh (double x)
1051    @deftypefnx {C Function} double scm_atanh (double x)
1052    Return the hyperbolic arcsine, arccosine or arctangent of @var{x}
1053    respectively.
1054    @end deftypefn
1055    
1056    
1057  @node Bitwise Operations  @node Bitwise Operations

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26