This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
sincos ( a little off-topic)
- From: Daniel Rohe <d dot rohe at fkf dot mpg dot de>
- To: gsl list <gsl-discuss at sources dot redhat dot com>
- Date: Mon, 27 May 2002 17:12:53 +0200
- Subject: sincos ( a little off-topic)
this questionis not directly gsl-specific, but it may interest some of
you, and I couldn't find an answer anywhere else.
I'm trying to use the sincos function which is supposed to be provided
by libc. however all I get is the following compiler error:
test_math.C: In function `int main()':
test_math.C:26: implicit declaration of function `int sincos(...)'
I had a look at math.h and there's a strange construct which declares
sincos only if some macro is defined.
does anyone know how to access this function, and maybe also if its
preformance is reasonable?
thanks in advance,
daniel
--
Daniel Rohe
Max Planck Institute for Solid State Research
Heisenbergstr. 1, D-70569 Stuttgart
Phone: +49 711/689-1516
Fax: +49 711/689-1702