[PHP-NOTES] note 130224 added to function.acos

[email protected] ("[email protected]")
Newsgroups php.notes
Message-ID <[email protected]>
Parameter:
$num: A float value between -1 and 1. (Outside this range will return NAN)

Returns:
The arc cosine of the number in radians.

NAN (Not A Number) if the input is outside [-1, 1].

<?php
$cosValue = 0.5;
$angle = acos($cosValue); // returns angle in radians
echo $angle; // 1.0471975512 (which is ~60 degrees)

echo rad2deg($angle); // Convert to degrees: ~60
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 43.229.12.161)
----
Manual Page -- https://php.net/manual/en/function.acos.php
Edit        -- https://main.php.net/note/edit/130224
Del: integrated  -- https://main.php.net/note/delete/130224/integrated
Del: useless     -- https://main.php.net/note/delete/130224/useless
Del: bad code    -- https://main.php.net/note/delete/130224/bad+code
Del: spam        -- https://main.php.net/note/delete/130224/spam
Del: non-english -- https://main.php.net/note/delete/130224/non-english
Del: in docs     -- https://main.php.net/note/delete/130224/in+docs
Del: other reasons-- https://main.php.net/note/delete/130224
Reject      -- https://main.php.net/note/reject/130224
Search      -- https://main.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.