Bug #74451 [NEW]: Sine values exceed 1
| From: | m_sun at mail dot ru | Date: | Sun, 16 Apr 2017 03:39:27 +0000 |
| Subject: | Bug #74451 [NEW]: Sine values exceed 1 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-208587@lists.php.net to get a copy of this message | ||
From: m_sun at mail dot ru
Operating system: Alpine Linux
PHP version: 5.6.30
Package: Math related
Bug Type: Bug
Bug description:Sine values exceed 1
Description:
------------
Absolute values of sine and cosine functions may somehow exceed 1 when
argument is more then 2 * pi
Test script:
---------------
$sin = sin(60.0); // $sin contains 19880855899899 now
$sin = sin (fmod (60.0, M_PI * 2)); // Gives correct result now
Actual result:
--------------
Radian Degrees Sin Cos
60 3,437.75 19880855899899 -84637265064481
60.1 3,443.48 20318846900770 -86648047391510
60.2 3,449.21 20765725188326 -88703090857283
--
Edit bug report at https://bugs.php.net/bug.php?id=74451&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74451&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74451&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74451&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74451&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74451&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74451&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74451&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74451&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74451&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74451&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74451&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74451&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74451&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74451&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74451&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74451&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74451&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74451&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74451&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74451&r=mysqlcfg