Bug #51478 [Bgs]: Unexpected result for tan(M_PI_2)
| From: | rik dot veenboer at gmail dot com | Date: | Mon, 05 Apr 2010 14:05:11 +0000 |
| Subject: | Bug #51478 [Bgs]: Unexpected result for tan(M_PI_2) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149323@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51478&edit=1
ID: 51478
User updated by: rik dot veenboer at gmail dot com
Reported by: rik dot veenboer at gmail dot com
Summary: Unexpected result for tan(M_PI_2)
Status: Bogus
Type: Bug
Package: Math related
Operating System: Windows 7
PHP Version: 5.3.2
New Comment:
I confused the sin() and the tan() functions. Now is see that
tan(M_PI_2) should go to infinity. This bug can be removed.
Previous Comments:
------------------------------------------------------------------------
[2010-04-05 15:46:39] pajoye@php.net
Please read again the tangent properties (and PI).
------------------------------------------------------------------------
[2010-04-05 14:49:49] rik dot veenboer at gmail dot com
Description:
------------
When running the code, the return value is a float: 1.6331239353195E+16,
while a value of 1 is expected. This was posted before as bug #31236,
but not fixed since 2004.
Test script:
---------------
tan(M_PI_2)
Expected result:
----------------
1
Actual result:
--------------
1.6331239353195E+16
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51478&edit=1