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: (view raw, whole thread or download thread mbox)
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


   select sin(pi());

returns: 1.2246


   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.


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-2017 The PostgreSQL Global Development Group