This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Sine and Cosine Accuracy
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'David Daney'" <ddaney at avtrex dot com>
- Cc: "'Scott Robert Ladd'" <scott dot ladd at coyotegulch dot com>,"'Paul Koning'" <pkoning at equallogic dot com>,<rth at redhat dot com>,<gcc at gcc dot gnu dot org>
- Date: Thu, 26 May 2005 18:34:58 +0100
- Subject: RE: Sine and Cosine Accuracy
----Original Message----
>From: David Daney
>Sent: 26 May 2005 18:23
> Dave Korn wrote:
>
>> " Identities such as
>> sin(x)^2 + cos(x)^2 === 1
>> are only valid when 0 <= x <= 2*PI"
>>
>
> It's been a while since I studied math, but isn't that particular
> identity is true for any x real or complex?
>
> David Daney,
Yes, that was solely an example of the difference between 'identities' and
'functions', for illustration, in case there was any ambiguity in the
language, but was not meant to be an example of an *actual* identity that
has a restriction on the valid range of inputs. Sorry for not being
clearer.
cheers,
DaveK
--
Can't think of a witty .sigline today....