note 130224 added to function.acos

From: Date: Mon, 07 Apr 2025 07:01:44 +0000
Subject: note 130224 added to function.acos
Groups: php.notes 
Request: Send a blank email to php-notes+get-222062@lists.php.net to get a copy of this message
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

« previous php.notes (#222062) next »