From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add trigonometric functions that work in degrees.
Date: Fri, 22 Jan 2016 20:46:29 +0000
Message-ID: <E1aMibF-0007DJ-Px@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add trigonometric functions that work in degrees.
The implementations go to some lengths to deliver exact results for values
where an exact result can be expected, such as sind(30) = 0.5 exactly.
Dean Rasheed, reviewed by Michael Paquier
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/e1bd684a34c11139a1bf4e5200c3bbe59a0fbfad
Modified Files
--------------
doc/src/sgml/func.sgml | 72 +++-
src/backend/utils/adt/float.c | 437 +++++++++++++++++++-
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 18 +
src/include/utils/builtins.h | 8 +
.../expected/float8-exp-three-digits-win32.out | 77 ++++
src/test/regress/expected/float8-small-is-zero.out | 77 ++++
.../regress/expected/float8-small-is-zero_1.out | 77 ++++
src/test/regress/expected/float8.out | 77 ++++
src/test/regress/sql/float8.sql | 24 ++
10 files changed, 860 insertions(+), 9 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add trigonometric functions that work in degrees.
In-Reply-To: <E1aMibF-0007DJ-Px@gemulon.postgresql.org>
References: <E1aMibF-0007DJ-Px@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox