Re: Proposal: Trigonometric functions in degrees - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Proposal: Trigonometric functions in degrees
Date
Msg-id 562E82F7.2060704@gmx.net
Whole thread Raw
In response to Proposal: Trigonometric functions in degrees  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: Proposal: Trigonometric functions in degrees  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-hackers
On 10/24/15 5:24 AM, Dean Rasheed wrote:
> Additionally, functions that worked natively in degrees would be able
> to return exact answers in special cases like cosd(90) = 0, whereas
> cos(radians(90)) is not exactly 0 because pi/2 cannot be represented
> exactly as a floating point number.

But how you are going to implement that?  I don't see a sind() in the C
library.




pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: Proposal: Trigonometric functions in degrees
Next
From: Dean Rasheed
Date:
Subject: Re: Proposal: Trigonometric functions in degrees