Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zqnju-0004vN-Dd for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Oct 2015 19:47:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zqnjt-0005nw-LK for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Oct 2015 19:47:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZqniZ-0004Hs-IR for pgsql-hackers@postgresql.org; Mon, 26 Oct 2015 19:46:07 +0000 Received: from mout.gmx.net ([212.227.17.20]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZqniW-00041J-Ko for pgsql-hackers@postgresql.org; Mon, 26 Oct 2015 19:46:06 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M6SE3-1ajTf83Y9z-00ySdg for ; Mon, 26 Oct 2015 20:46:02 +0100 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 0A3912066D for ; Mon, 26 Oct 2015 15:46:00 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 26 Oct 2015 15:46:00 -0400 X-Sasl-enc: /ZOzK7KzzDSP8Lqvlit7Vmlp2hVubbfoTgocRNNO0XTY 1445888759 Received: from [192.168.1.59] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id C7A3EC0001F; Mon, 26 Oct 2015 15:45:59 -0400 (EDT) Subject: Re: Proposal: Trigonometric functions in degrees To: Dean Rasheed , PostgreSQL Hackers References: From: Peter Eisentraut Message-ID: <562E82F7.2060704@gmx.net> Date: Mon, 26 Oct 2015 15:45:59 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:jRUC4iy5d2vZS8o5q9P2iI8nIs40dFW4J9TC2rj5XuSbT7Hn9+e +gNx9d7C6FdEih0V01tsFeZHnMz5cyPG8ZE91uOr4FQ7L2np/o1YXSd7YtbpC49dC1tVn2d izjWCOn5B9p/AC+5r38a+4gjhMbNdIaE2CXuFFmgSM4GzoAHh03dm3taXYwPuuKCj8bLK/J NUsSERj4m2x/e8mTFn4qQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:BDQsGaTpheM=:MfVPjJrM5VHQkQ/1QbQKCq PO308oqHFVASamkzVNbol/gF/wkUIKIImDEp+6PKXRtI0fOvCJr9Wgue2PK4LNZ7r2eCBdi5s FLGVj3jhOEkXdvgmXS4NpmNwK5vXW9+Zmj3WVjTbTWAanuXHFUSN+vab8GwuZ5jOTK3LkWTNm UOBTFyISBlmQ09yZbEsAVbtjV9wmCUxTiPDaady3zmphcqNyfVcrjglUlS9V428HyUqWwzbsJ chI8WGLUy9YUChsjWVCujiLPdYXyCf3IURvjNjaiT+S5LzMTMq1jMMGKTV5TA3JcvYIzEemm1 LKUOPoI1Qu4cCWZkadzoMYwfJavYWKaNErG8ZmeKInRonsukFEMQEhSfiU5Vq/Y0LAQp5/Z60 CcqQe1twHSgscdNd15UzbzOYkYThrjSARfEcTEvRAReSBEVY5muR5VThJw1aZGRUElHG29SMS utCb761BZbDpoLMNXCG6qxWFIE3tdEFajtssIblmkXKlHRvnZ8DYDH0ZrDoIGv2tNCfl0Dme3 W9ZMIyuUP0GIg4cTJdwsWU0mShKgtTT79JrsCXgatIi+8rM6TFEZu7IQcKOHE7mL3JdtoPVbN vRdOx5+6rWz53E4pdDkZU3MvbWngPELeeFBcjhW72V1SvP2X5NAfszVMTA2pq3vcGlPk3eyuw ACjZQajXZE+r4S78sykJ1ETaoMZGAizPw8z2gUssCdpaQtgU50RxTVVJUJrYFF+AEkfA8nt8q +1ZevFOLXNZU8EY9eAaqGXULH5h3NAHzCrYgg4/TNzLgtW0xuv8CixjdqFH93rCHUAWDxLOyy 93Q8YEZ X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org 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. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers