From conrad.halling at bifx.org  Tue Jul  5 19:08:31 2005
From: conrad.halling at bifx.org (Conrad Halling)
Date: Tue, 05 Jul 2005 13:08:31 -0400
Subject: [Rd] prototypes for z_sin() and z_cos()
In-Reply-To: <93D4ABFE-69BD-4A20-B35F-19A0996FAF24@soc.soton.ac.uk>
References: <93D4ABFE-69BD-4A20-B35F-19A0996FAF24@soc.soton.ac.uk>
Message-ID: <42CABE8F.5000609@bifx.org>

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



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