[Rd] prototypes for z_sin() and z_cos()

Conrad Halling conrad.halling at bifx.org
Tue Jul 5 19:08:31 CEST 2005


Both z_cos() and z_sin() are defined as static functions in complex.c, 
so they don't appear in the header files.

It would be simple to copy the source code for both functions into your 
own code.

-- Conrad

Robin Hankin wrote:

>Hi
>
>I have been looking at complex.c and want to access z_cos() and z_sin 
>() from
>C in one of my packages.
>
>There doesn't seem to be a corresponding header file: there is no  
>complex.h file.
>
>Where are the prototypes of z_sin() and z_cos() for these functions?
>
>grepping didn't help me:
>
>                  find ~/downloads/R-2.1.1/  -name "*.h " | xargs  
>egrep "z_cos"
>
>returned empty.
>
>How do I access z_sin() from my c code?
>
>
>--
>Robin Hankin
>Uncertainty Analyst
>National Oceanography Centre, Southampton
>European Way, Southampton SO14 3ZH, UK
>  tel  023-8059-7743
>
>______________________________________________
>R-devel at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-devel
>
>  
>

-- 
Conrad Halling
conrad.halling at bifx.org



More information about the R-devel mailing list