php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #31236 tan(M_PI_4) = 1, not tan(M_PI_2)
Submitted: 2004-12-22 00:17 UTC Modified: 2004-12-22 02:17 UTC
From: dtorop933 at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.3 OS: GNU/Linux
Private report: No CVE-ID: None
 [2004-12-22 00:17 UTC] dtorop933 at gmail dot com
Description:
------------
In documentation http://php.net/tan, example code says:

echo tan(M_PI_2); // 1

The comment implies tan(M_PI_2) = 1.
But tan(M_PI_2) is a really really big number, tan(M_PI_4) = 1.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-22 02:17 UTC] dave@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 12:01:31 2024 UTC