This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Implementatoinof Sin and Cos
- From: Stefan Jones <cretin at gentoo dot org>
- To: Anup Hosangadi <anuphosh at yahoo dot com>
- Cc: libc-alpha <libc-alpha at sources dot redhat dot com>
- Date: 15 Jul 2003 08:06:13 +0100
- Subject: Re: Implementatoinof Sin and Cos
- Organization: Gentoo Linux
- References: <20030714204831.13963.qmail@web40614.mail.yahoo.com>
Taylor Series converges very slowly in my opinion. Such functions are
normally done via a small table lookup and some sort of converging
iteration ( at least the floating point division unit I worked on does).
Most floating point calculations are done in hardware in the FPU, I
think trigonometric function are one of them.
Stefan
On Mon, 2003-07-14 at 21:48, Anup Hosangadi wrote:
> Hi,
>
> Can anyone tell me how the Trigonometric functions
> like Sin and Cos are actually implemented in the
> glibc libraries?
>
> Is it done by Expansion of Taylor's series??
>
> Thanks,
> Anup
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com