note 129983 added to function.sqrt

From: Date: Sat, 18 Jan 2025 05:10:25 +0000
Subject: note 129983 added to function.sqrt
Groups: php.notes 
Request: Send a blank email to php-notes+get-221798@lists.php.net to get a copy of this message
if you want a custom square root. Use pow() or powLogExp function (custom). example: 100 root 3. In math is same as 1 divide with 3 (important) <?php $root = 1/3; echo pow(1000, $root); echo powLogExp(1000, $root); function powLogExp($num1, $num2){ $num3 = log($num1) * $num2; return exp($num3); } ?> With this, you might using more complex 'root' reference: counting math using log ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 103.171.163.222) ---- Manual Page -- https://php.net/manual/en/function.sqrt.php Edit -- https://main.php.net/note/edit/129983 Del: integrated -- https://main.php.net/note/delete/129983/integrated Del: useless -- https://main.php.net/note/delete/129983/useless Del: bad code -- https://main.php.net/note/delete/129983/bad+code Del: spam -- https://main.php.net/note/delete/129983/spam Del: non-english -- https://main.php.net/note/delete/129983/non-english Del: in docs -- https://main.php.net/note/delete/129983/in+docs Del: other reasons-- https://main.php.net/note/delete/129983 Reject -- https://main.php.net/note/reject/129983 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221798) next »