Skip site navigation (1) Skip section navigation (2)

BUG #4749: trigonometric functions broken

From: "Stefano Salvador" <stefano(dot)salvador(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4749: trigonometric functions broken
Date: 2009-04-05 10:44:37
Message-ID: 200904051044.n35Aib77063835@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      4749
Logged by:          Stefano Salvador
Email address:      stefano(dot)salvador(at)gmail(dot)com
PostgreSQL version: 8.3.7
Operating system:   Linux
Description:        trigonometric functions broken
Details: 

try:

   select sin(pi());

returns: 1.2246

or:

   select cos(pi()/2);

returns: 6.123


but sin and cos are limited between -1 and 1 !!!

I suspect than tan() function is broken too.

Responses

pgsql-bugs by date

Next:From: Peter EisentrautDate: 2009-04-05 14:58:46
Subject: Re: BUG #4749: trigonometric functions broken
Previous:From: Devrim GÜNDÜZDate: 2009-04-05 10:28:59
Subject: Re: MD5 checksum or RPM for PostgreSQL 8.7.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group