On Sun, Jan 31, 2016 at 9:01 PM, Piotr Stefaniak <postg...@piotr-stefaniak.me> wrote: > - 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?
Per IEEE 754, division by 0 for a double results in Nan or +/-Inf, so that's actually correct. -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers