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

From Piotr Stefaniak
Subject Re: Proposal: Trigonometric functions in degrees
Date
Msg-id BLU437-SMTP154A9816D880D5B29BF28BF2DD0@phx.gbl
Whole thread Raw
In response to Re: Proposal: Trigonometric functions in degrees  (Noah Misch <noah@leadboat.com>)
Responses Re: Proposal: Trigonometric functions in degrees
Re: Proposal: Trigonometric functions in degrees
List pgsql-hackers
These changes from 65abaab547a5758b0d6d92df4af1663bb47d545f

- result = sign * cosd_q1(arg1) / sind_q1(arg1);
+ result = sign * ((cosd_q1(arg1) / sind_q1(arg1)) / cot_45);

and

- result = sign * sind_q1(arg1) / cosd_q1(arg1);
+ result = sign * ((sind_q1(arg1) / cosd_q1(arg1)) / tan_45);

both introduce division by zero, don't they?




pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Support for N synchronous standby servers - take 2
Next
From: Alvaro Herrera
Date:
Subject: Re: PoC: Partial sort