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] paj...@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